summaryrefslogtreecommitdiffstats
path: root/src/httpserver/qhttpserverrequest.cpp
diff options
context:
space:
mode:
authorMikhail Svetkin <mikhail.svetkin@qt.io>2018-10-30 16:23:23 +0100
committerMikhail Svetkin <mikhail.svetkin@qt.io>2019-01-25 11:49:44 +0000
commit540daf882faa0e6ac2030835042445a598ca1e74 (patch)
tree580fbfd3c4cc03dd82a549cc8a60b99721501c92 /src/httpserver/qhttpserverrequest.cpp
parenta8565567840b23013d5ae1b41159986fe481a0f0 (diff)
Introduce QHttpServer
QHttpServer provides a simplified interface to QAbstractHttpServer and QHttpServerRouter. Change-Id: I884204aa8140bbab4c0d6a8ab4c798e0b2470e29 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/httpserver/qhttpserverrequest.cpp')
-rw-r--r--src/httpserver/qhttpserverrequest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/httpserver/qhttpserverrequest.cpp b/src/httpserver/qhttpserverrequest.cpp
index 07f89a4..df6af8f 100644
--- a/src/httpserver/qhttpserverrequest.cpp
+++ b/src/httpserver/qhttpserverrequest.cpp
@@ -267,6 +267,11 @@ QUrl QHttpServerRequest::url() const
return d->url;
}
+QUrlQuery QHttpServerRequest::query() const
+{
+ return QUrlQuery(d->url.query());
+}
+
QHttpServerRequest::Method QHttpServerRequest::method() const
{
switch (d->httpParser.method) {