diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-03 01:29:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-04-25 12:55:25 +0200 |
| commit | fd463613f7fa3857191df889e8a06b7293c8a1b2 (patch) | |
| tree | 0cd6b183799b5403005df9a4073b1dc3c9ec6168 /src/lib/http_server.h | |
| parent | 1de73617189af0de3c6e8d0869ba432d4d803a47 (diff) | |
Allow handling of HTTP request body.
Diffstat (limited to 'src/lib/http_server.h')
| -rw-r--r-- | src/lib/http_server.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/http_server.h b/src/lib/http_server.h index ca4f498e4..b07ec47b1 100644 --- a/src/lib/http_server.h +++ b/src/lib/http_server.h @@ -82,9 +82,9 @@ public: private: void handle(std::shared_ptr<Socket> socket) override; - Response request(std::vector<std::string> const& request); + Response request(std::vector<std::string> const& request, std::string const& body); Response get(std::string const& url); - Response post(std::string const& url); + Response post(std::string const& url, std::string const& body); boost::mutex _mutex; bool _playing = false; |
