1 #pragma once 2 3 #include "http_response.hpp" 4 5 #include <functional> 6 7 namespace bmcweb 8 { 9 10 /** 11 * AsyncResp 12 * Gathers data needed for response processing after async calls are done 13 */ 14 15 class AsyncResp 16 { 17 public: 18 AsyncResp() = default; 19 20 AsyncResp(const AsyncResp&) = delete; 21 AsyncResp(AsyncResp&&) = delete; 22 23 ~AsyncResp() 24 { 25 res.end(); 26 } 27 28 crow::Response res; 29 }; 30 31 } // namespace bmcweb 32