| Ed Tanous | e3cb5a3 | 2018-08-08 14:16:49 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |||||
| zhanghch05 | 8d1b46d | 2021-04-01 11:18:24 +0800 | [diff] [blame] | 3 | #include "http_response.hpp" |
| 4 | |||||
| Iwona Klimaszewska | c0a1c8a | 2019-07-12 18:26:38 +0200 | [diff] [blame] | 5 | #include <functional> |
| 6 | |||||
| Ed Tanous | e3cb5a3 | 2018-08-08 14:16:49 -0700 | [diff] [blame] | 7 | namespace bmcweb |
| 8 | { | ||||
| 9 | |||||
| 10 | /** | ||||
| 11 | * AsyncResp | ||||
| 12 | * Gathers data needed for response processing after async calls are done | ||||
| 13 | */ | ||||
| Iwona Klimaszewska | c0a1c8a | 2019-07-12 18:26:38 +0200 | [diff] [blame] | 14 | |
| Ed Tanous | e3cb5a3 | 2018-08-08 14:16:49 -0700 | [diff] [blame] | 15 | class AsyncResp |
| 16 | { | ||||
| 17 | public: | ||||
| zhanghch05 | 91995f3 | 2021-10-20 18:43:55 +0800 | [diff] [blame] | 18 | AsyncResp() = default; |
| Iwona Klimaszewska | c0a1c8a | 2019-07-12 18:26:38 +0200 | [diff] [blame] | 19 | |
| Krzysztof Grobelny | dab0604 | 2021-04-02 13:28:14 +0000 | [diff] [blame] | 20 | AsyncResp(const AsyncResp&) = delete; |
| 21 | AsyncResp(AsyncResp&&) = delete; | ||||
| 22 | |||||
| Ed Tanous | e3cb5a3 | 2018-08-08 14:16:49 -0700 | [diff] [blame] | 23 | ~AsyncResp() |
| 24 | { | ||||
| 25 | res.end(); | ||||
| 26 | } | ||||
| 27 | |||||
| zhanghch05 | 91995f3 | 2021-10-20 18:43:55 +0800 | [diff] [blame] | 28 | crow::Response res; |
| Ed Tanous | e3cb5a3 | 2018-08-08 14:16:49 -0700 | [diff] [blame] | 29 | }; |
| 30 | |||||
| Iwona Klimaszewska | c0a1c8a | 2019-07-12 18:26:38 +0200 | [diff] [blame] | 31 | } // namespace bmcweb |