| Ed Tanous | e3cb5a3 | 2018-08-08 14:16:49 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |||||
| 3 | namespace bmcweb | ||||
| 4 | { | ||||
| 5 | |||||
| 6 | /** | ||||
| 7 | * AsyncResp | ||||
| 8 | * Gathers data needed for response processing after async calls are done | ||||
| 9 | */ | ||||
| 10 | class AsyncResp | ||||
| 11 | { | ||||
| 12 | public: | ||||
| 13 | AsyncResp(crow::Response& response) : res(response) | ||||
| 14 | { | ||||
| 15 | } | ||||
| 16 | |||||
| 17 | ~AsyncResp() | ||||
| 18 | { | ||||
| 19 | res.end(); | ||||
| 20 | } | ||||
| 21 | |||||
| 22 | crow::Response& res; | ||||
| 23 | }; | ||||
| 24 | |||||
| 25 | } // namespace bmcweb | ||||