blob: af4edebc53c4fd3de1cd9160aa4b3be021e09c65 [file] [log] [blame]
Ed Tanouse3cb5a32018-08-08 14:16:49 -07001#pragma once
2
3namespace bmcweb
4{
5
6/**
7 * AsyncResp
8 * Gathers data needed for response processing after async calls are done
9 */
10class 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