| 1 | // Copyright (C) 2019 The Qt Company Ltd. | 
|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef QHTTPSERVERROUTERRULE_P_H | 
|---|
| 5 | #define QHTTPSERVERROUTERRULE_P_H | 
|---|
| 6 |  | 
|---|
| 7 | #include <QtHttpServer/qhttpserverrouterrule.h> | 
|---|
| 8 |  | 
|---|
| 9 | #include <QtCore/qregularexpression.h> | 
|---|
| 10 | #include <QtCore/qstring.h> | 
|---|
| 11 | #include <QtCore/qpointer.h> | 
|---|
| 12 |  | 
|---|
| 13 | // | 
|---|
| 14 | //  W A R N I N G | 
|---|
| 15 | //  ------------- | 
|---|
| 16 | // | 
|---|
| 17 | // This file is not part of the Qt API.  It exists for the convenience | 
|---|
| 18 | // of QHttpServer. This header file may change from version to | 
|---|
| 19 | // version without notice, or even be removed. | 
|---|
| 20 | // | 
|---|
| 21 | // We mean it. | 
|---|
| 22 |  | 
|---|
| 23 | QT_BEGIN_NAMESPACE | 
|---|
| 24 |  | 
|---|
| 25 | class QHttpServerRouterRulePrivate | 
|---|
| 26 | { | 
|---|
| 27 | public: | 
|---|
| 28 | QString pathPattern; | 
|---|
| 29 | QHttpServerRequest::Methods methods; | 
|---|
| 30 | QtPrivate::SlotObjUniquePtr routerHandler; | 
|---|
| 31 | QPointer<const QObject> context; | 
|---|
| 32 |  | 
|---|
| 33 | QRegularExpression pathRegexp; | 
|---|
| 34 | }; | 
|---|
| 35 |  | 
|---|
| 36 | QT_END_NAMESPACE | 
|---|
| 37 |  | 
|---|
| 38 | #endif // QHTTPSERVERROUTERRULE_P_H | 
|---|
| 39 |  | 
|---|