diff options
| author | Nikita Kostovsky <nikita@kostovsky.me> | 2025-11-14 22:49:35 +0100 |
|---|---|---|
| committer | Nikita Kostovsky <nikita@kostovsky.me> | 2025-11-14 22:49:35 +0100 |
| commit | 5b1b873f3f09f3e1644141a2cfc67b3a84dc4492 (patch) | |
| tree | edbc25ac40dcd2c2a3b47b1ed823b4d6466fea0c /src/protocols/httpserver.h | |
| parent | ac27fb455c76aee4f9e9f65747483006909b14ab (diff) | |
cleanup
Diffstat (limited to 'src/protocols/httpserver.h')
| -rw-r--r-- | src/protocols/httpserver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/httpserver.h b/src/protocols/httpserver.h index 64f7987..600ead4 100644 --- a/src/protocols/httpserver.h +++ b/src/protocols/httpserver.h @@ -24,14 +24,14 @@ public: static constexpr uint16_t DefaultPort{8080}; public: - explicit HttpServer(ICamera *camera, - // QObject *parent = nullptr, + explicit HttpServer(std::shared_ptr<ICamera> camera, const QHostAddress &address = DefaultAddress, const uint16_t port = DefaultPort); ~HttpServer() override = default; // TODO: methods starting with GET_/POST_ will be routed automatically public: + QHttpServerResponse GET_image(); QHttpServerResponse GET_pixels(); QHttpServerResponse POST_params(const QHttpServerRequest &request); |
