diff options
Diffstat (limited to 'minion/src/http/request.hpp')
-rw-r--r-- | minion/src/http/request.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/minion/src/http/request.hpp b/minion/src/http/request.hpp index 8524dc6..dae66f2 100644 --- a/minion/src/http/request.hpp +++ b/minion/src/http/request.hpp @@ -1,5 +1,7 @@ #pragma once +#include "network_connection.hpp" + #include <stddef.h> enum HTTPRequestMethod @@ -25,7 +27,7 @@ class HTTPRequest { public: explicit HTTPRequest( - int connection_id, + NetworkConnection connection, HTTPRequestMethod method, char *http_version, char *path, @@ -39,7 +41,7 @@ public: ~HTTPRequest() noexcept; - auto connection_id() const noexcept -> int; + auto connection() noexcept -> NetworkConnection &; auto method() const noexcept -> HTTPRequestMethod; @@ -58,7 +60,7 @@ public: static HTTPRequest create_invalid() noexcept; private: - const int _connection_id; + NetworkConnection _connection; const HTTPRequestMethod _method; char *_http_version; char *_path; |