summaryrefslogtreecommitdiff
path: root/minion/src/wifi_module.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-13 22:33:12 +0200
committerHampusM <hampus@hampusmat.com>2022-05-13 22:33:12 +0200
commitcd00813c0740930d389f935f0c2d7d8a11eef02d (patch)
treead1d20704e6707b5fcb734876c4a0cbed860c297 /minion/src/wifi_module.hpp
parentfc1a41c627f25c1fa52c87d002d08870fa8876ac (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.hpp5
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;