#ifndef HTTP_REQUEST_HPP #define HTTP_REQUEST_HPP #include #include #include #include "header.hpp" namespace http::server { class Url { public: explicit Url(const std::string& url); std::string path; std::map params; ~Url(); }; /// A request received from a client. class Request { public: Request(bool secure); void reset(); std::string getHeaderValue(const std::string& headerName) const; std::string method; std::string queryUri; std::unique_ptr url; bool isKeepAlive{}; const bool isSecure; int httpVersionMajor{}; int httpVersionMinor{}; std::vector
headers; std::vector payload; ~Request(); }; } // namespace http::Server #endif // HTTP_REQUEST_HPP