diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-13 22:33:12 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-05-13 22:33:12 +0200 |
commit | cd00813c0740930d389f935f0c2d7d8a11eef02d (patch) | |
tree | ad1d20704e6707b5fcb734876c4a0cbed860c297 /minion/src/wifi_module.hpp | |
parent | fc1a41c627f25c1fa52c87d002d08870fa8876ac (diff) |
refactor(minion): wifi module create http request object in stack
Diffstat (limited to 'minion/src/wifi_module.hpp')
-rw-r--r-- | minion/src/wifi_module.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/minion/src/wifi_module.hpp b/minion/src/wifi_module.hpp index 447f056..bac5998 100644 --- a/minion/src/wifi_module.hpp +++ b/minion/src/wifi_module.hpp @@ -91,10 +91,9 @@ public: /** * Reads a incoming HTTP request. * - * @returns A pointer to the request. Has to be deleted after use. Is nullptr if - * reading the request failed. + * @returns A request. Has a connection ID of -1 if reading the request failed. */ - auto read_incoming_request() noexcept -> HTTPRequest *; + auto read_incoming_request() noexcept -> HTTPRequest; auto close_connection(size_t connection_id) noexcept -> bool; |