summaryrefslogtreecommitdiff
path: root/src/protocols/httpserver.h
diff options
context:
space:
mode:
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);