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/websocket.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/websocket.hpp')
-rw-r--r-- | http/websocket.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/http/websocket.hpp b/http/websocket.hpp index 388a3e4031..d232c02330 100644 --- a/http/websocket.hpp +++ b/http/websocket.hpp @@ -1,5 +1,6 @@ #pragma once #include "async_resp.hpp" +#include "http_body.hpp" #include "http_request.hpp" #include <boost/asio/buffer.hpp> @@ -128,7 +129,7 @@ class ConnectionImpl : public Connection })); // Make a pointer to keep the req alive while we accept it. - using Body = boost::beast::http::request<bmcweb::FileBody>; + using Body = boost::beast::http::request<bmcweb::HttpBody>; std::unique_ptr<Body> mobile = std::make_unique<Body>(req.req); Body* ptr = mobile.get(); // Perform the websocket upgrade @@ -227,7 +228,7 @@ class ConnectionImpl : public Connection void acceptDone(const std::shared_ptr<Connection>& /*self*/, const std::unique_ptr< - boost::beast::http::request<bmcweb::FileBody>>& /*req*/, + boost::beast::http::request<bmcweb::HttpBody>>& /*req*/, const boost::system::error_code& ec) { if (ec) |