summaryrefslogtreecommitdiff
path: root/src/protocols/httpserver.h
diff options
context:
space:
mode:
authorNikita Kostovsky <nikita@kostovsky.me>2025-11-22 20:36:27 +0100
committerNikita Kostovsky <nikita@kostovsky.me>2025-11-22 20:36:27 +0100
commit9157b253251f357b76fdfd657300d43e702f1674 (patch)
tree39b5c6324646479fadb196d276840c9e3b70fa3e /src/protocols/httpserver.h
parent6aecc111a48ccc316a923e92b4b41424847be297 (diff)
introduce elapsed_logger and more garbage
Diffstat (limited to 'src/protocols/httpserver.h')
-rw-r--r--src/protocols/httpserver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/protocols/httpserver.h b/src/protocols/httpserver.h
index bfc1e56..e3ca66f 100644
--- a/src/protocols/httpserver.h
+++ b/src/protocols/httpserver.h
@@ -1,6 +1,7 @@
#pragma once
// qt
+#include <QFuture>
#include <QHostAddress>
#include <QHttpServerResponse>
// #include <QObject>
@@ -37,6 +38,12 @@ public:
// TODO: methods starting with GET_/POST_ will be routed automatically
public:
QHttpServerResponse GET_image();
+ /*!
+ * \brief GET_image_async
+ * \warning may crash
+ * \return
+ */
+ QFuture<QHttpServerResponse> GET_image_async();
QHttpServerResponse GET_pixels();
QHttpServerResponse POST_params(const QHttpServerRequest &request);