diff options
Diffstat (limited to 'src/httpserver/qhttpserverrouterrule.h')
-rw-r--r-- | src/httpserver/qhttpserverrouterrule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/httpserver/qhttpserverrouterrule.h b/src/httpserver/qhttpserverrouterrule.h index 235e982..2b168b4 100644 --- a/src/httpserver/qhttpserverrouterrule.h +++ b/src/httpserver/qhttpserverrouterrule.h @@ -56,6 +56,9 @@ public: explicit QHttpServerRouterRule(const QString &pathPattern, const QHttpServerRequest::Methods methods, RouterHandler &&routerHandler); + explicit QHttpServerRouterRule(const QString &pathPattern, + const char * methods, + RouterHandler &&routerHandler); QHttpServerRouterRule(QHttpServerRouterRule &&other) = delete; QHttpServerRouterRule &operator=(QHttpServerRouterRule &&other) = delete; @@ -65,6 +68,8 @@ public: protected: bool exec(const QHttpServerRequest &request, QTcpSocket *socket) const; + bool hasValidMethods() const; + bool createPathRegexp(const std::initializer_list<int> &metaTypes, const QMap<int, QLatin1String> &converters); |