diff options
author | zhanghch05 <zhanghch05@inspur.com> | 2021-04-01 06:18:24 +0300 |
---|---|---|
committer | zhanghch05 <zhanghch05@inspur.com> | 2021-04-08 04:01:21 +0300 |
commit | 8d1b46d7f8d39db2ba048f9e9007106ca3a28c9b (patch) | |
tree | 821fcb9b383fdf3db22db77e154cd7f57606d402 /include/async_resp.hpp | |
parent | dab0604af234bdd5010407031a01343d6c242edf (diff) | |
download | bmcweb-8d1b46d7f8d39db2ba048f9e9007106ca3a28c9b.tar.xz |
Using AsyncResp everywhere
Get the core using AsyncResp everywhere, and not have each individual handler
creating its own object.We can call app.handle() without fear of the response
getting ended after the first tree is done populating.
Don't use res.end() anymore.
Tested:
1. Validator passed.
Signed-off-by: zhanghaicheng <zhanghch05@inspur.com>
Change-Id: I867367ce4a0caf8c4b3f4e07e06c11feed0782e8
Diffstat (limited to 'include/async_resp.hpp')
-rw-r--r-- | include/async_resp.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/async_resp.hpp b/include/async_resp.hpp index ac9db1902b..8e9584ccdf 100644 --- a/include/async_resp.hpp +++ b/include/async_resp.hpp @@ -1,5 +1,7 @@ #pragma once +#include "http_response.hpp" + #include <functional> namespace bmcweb |