фича: автообновление сессии

This commit is contained in:
2025-01-17 19:09:44 +03:00
parent a4214fd007
commit 3537965393
16 changed files with 170 additions and 96 deletions

View File

@@ -21,7 +21,7 @@ namespace http::server {
/// A request received from a client.
class Request {
public:
Request();
Request(bool secure);
void reset();
std::string getHeaderValue(const std::string& headerName) const;
@@ -29,9 +29,10 @@ namespace http::server {
std::string method;
std::string queryUri;
std::unique_ptr<Url> url;
bool is_keep_alive{};
int http_version_major{};
int http_version_minor{};
bool isKeepAlive{};
const bool isSecure;
int httpVersionMajor{};
int httpVersionMinor{};
std::vector<header> headers;
std::vector<char> payload;