работающая авторизация

This commit is contained in:
2024-11-05 10:33:52 +03:00
parent b561dedb2b
commit 0eacd76810
10 changed files with 150 additions and 61 deletions

View File

@@ -19,14 +19,23 @@ namespace http::server {
};
/// A request received from a client.
struct Request {
class Request {
public:
Request();
void reset();
std::string getHeaderValue(const std::string& headerName) const;
std::string method;
std::string queryUri;
std::unique_ptr<Url> url;
bool is_keep_alive;
int http_version_major;
int http_version_minor;
bool is_keep_alive{};
int http_version_major{};
int http_version_minor{};
std::vector<header> headers;
std::vector<char> payload;
~Request();
};
} // namespace http::Server