diff options
Diffstat (limited to 'minion/src/http/request.cpp')
-rw-r--r-- | minion/src/http/request.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/minion/src/http/request.cpp b/minion/src/http/request.cpp index 9baf7cc..650f57f 100644 --- a/minion/src/http/request.cpp +++ b/minion/src/http/request.cpp @@ -55,14 +55,14 @@ auto str_to_http_request_method(const char *http_request_method_str) -> HTTPRequ } HTTPRequest::HTTPRequest( - int connection_id, + NetworkConnection connection, HTTPRequestMethod method, char *http_version, // NOLINT(bugprone-easily-swappable-parameters) char *path, int data_length, char *data ) noexcept - : _connection_id(connection_id), + : _connection(connection), _method(method), _http_version(http_version), _path(path), @@ -72,7 +72,7 @@ HTTPRequest::HTTPRequest( } HTTPRequest::HTTPRequest(HTTPRequest &&other) noexcept - : _connection_id(other._connection_id), + : _connection(other._connection), _method(other._method), _http_version(other._http_version), _path(other._path), @@ -87,9 +87,9 @@ HTTPRequest::~HTTPRequest() noexcept free(_data); } -auto HTTPRequest::connection_id() const noexcept -> int +auto HTTPRequest::connection() noexcept -> NetworkConnection & { - return _connection_id; + return _connection; } auto HTTPRequest::method() const noexcept -> HTTPRequestMethod @@ -135,7 +135,7 @@ HTTPRequest HTTPRequest::create_invalid() noexcept } HTTPRequest::HTTPRequest() noexcept - : _connection_id(-1), + : _connection(-1), _method(HTTPRequestMethod(-1)), _http_version(""), _path(""), |