| #include <boost/asio/io_context.hpp> |
| #include <boost/beast/http.hpp> |
| #include <boost/beast/websocket.hpp> |
| #include "query_string.h" |
| boost::beast::http::request<boost::beast::http::string_body>& req; |
| boost::beast::http::fields& fields; |
| void* middlewareContext{}; |
| boost::asio::io_context* ioService{}; |
| std::shared_ptr<crow::persistent_data::UserSession> session; |
| boost::beast::http::request<boost::beast::http::string_body>& reqIn) : |
| fields(reqIn.base()), body(reqIn.body()) |
| boost::beast::http::verb method() const |
| const std::string_view getHeaderValue(std::string_view key) const |
| const std::string_view getHeaderValue(boost::beast::http::field key) const |
| const std::string_view methodString() const |
| return req.method_string(); |
| const std::string_view target() const |
| return boost::beast::websocket::is_upgrade(req); |