diff options
author | Ed Tanous <ed@tanous.net> | 2024-02-01 02:25:47 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-03-19 03:27:05 +0300 |
commit | b2896149c39967dd9d1ee79357bdc53537cfabd7 (patch) | |
tree | d63dd043c5219c7109e403189d12801a0a722e24 /http/http2_connection.hpp | |
parent | c51afd54a55d5c8d6cb6e9583e209788f7996fe3 (diff) | |
download | bmcweb-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/http2_connection.hpp')
-rw-r--r-- | http/http2_connection.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http/http2_connection.hpp b/http/http2_connection.hpp index 97dcf4e2bb..ed3748059b 100644 --- a/http/http2_connection.hpp +++ b/http/http2_connection.hpp @@ -39,7 +39,7 @@ struct Http2StreamData { Request req{}; Response res{}; - std::optional<bmcweb::FileBody::writer> writer; + std::optional<bmcweb::HttpBody::writer> writer; }; template <typename Adaptor, typename Handler> @@ -173,7 +173,7 @@ class HTTP2Connection : } Http2StreamData& stream = it->second; crow::Response& res = stream.res; - http::response<bmcweb::FileBody>& fbody = res.response; + http::response<bmcweb::HttpBody>& fbody = res.response; stream.writer.emplace(fbody.base(), fbody.body()); nghttp2_data_provider dataPrd{ |