summaryrefslogtreecommitdiff
path: root/http/http_connection.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-02-01 02:25:47 +0300
committerEd Tanous <ed@tanous.net>2024-03-19 03:27:05 +0300
commitb2896149c39967dd9d1ee79357bdc53537cfabd7 (patch)
treed63dd043c5219c7109e403189d12801a0a722e24 /http/http_connection.hpp
parentc51afd54a55d5c8d6cb6e9583e209788f7996fe3 (diff)
downloadbmcweb-b2896149c39967dd9d1ee79357bdc53537cfabd7.tar.xz
Rename FileBody to HttpBody
Now that our custom body type does things more than files, it makes sense to rename it. This commit renames the header itself, then all instances of the class. Tested: Basic GET requests succeed. Change-Id: If4361ac8992fc7c268f48a336707f96e68d3576c Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'http/http_connection.hpp')
-rw-r--r--http/http_connection.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp
index ed3dc07573..d60e74b9a5 100644
--- a/http/http_connection.hpp
+++ b/http/http_connection.hpp
@@ -5,6 +5,7 @@
#include "authentication.hpp"
#include "complete_response_fields.hpp"
#include "http2_connection.hpp"
+#include "http_body.hpp"
#include "http_response.hpp"
#include "http_utility.hpp"
#include "logging.hpp"
@@ -611,8 +612,8 @@ class Connection :
Handler* handler;
// Making this a std::optional allows it to be efficiently destroyed and
// re-created on Connection reset
- std::optional<boost::beast::http::request_parser<bmcweb::FileBody>> parser;
- std::optional<boost::beast::http::response_serializer<bmcweb::FileBody>>
+ std::optional<boost::beast::http::request_parser<bmcweb::HttpBody>> parser;
+ std::optional<boost::beast::http::response_serializer<bmcweb::HttpBody>>
serializer;
boost::beast::flat_static_buffer<8192> buffer;