| 1 | // Copyright (C) 2019 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QHTTPSERVERROUTER_P_H |
| 5 | #define QHTTPSERVERROUTER_P_H |
| 6 | |
| 7 | #include <QtHttpServer/qhttpserverrouter.h> |
| 8 | #include <QtHttpServer/qhttpserverrouterrule.h> |
| 9 | |
| 10 | #include <QtCore/qhash.h> |
| 11 | #include <QtCore/qstring.h> |
| 12 | |
| 13 | #include <memory> |
| 14 | #include <vector> |
| 15 | |
| 16 | // |
| 17 | // W A R N I N G |
| 18 | // ------------- |
| 19 | // |
| 20 | // This file is not part of the Qt API. It exists for the convenience |
| 21 | // of QHttpServer. This header file may change from version to |
| 22 | // version without notice, or even be removed. |
| 23 | // |
| 24 | // We mean it. |
| 25 | |
| 26 | QT_BEGIN_NAMESPACE |
| 27 | |
| 28 | class QHttpServerRouterPrivate |
| 29 | { |
| 30 | public: |
| 31 | QHttpServerRouterPrivate(QAbstractHttpServer *server); |
| 32 | |
| 33 | QHash<QMetaType, QString> converters; |
| 34 | std::vector<std::unique_ptr<QHttpServerRouterRule>> rules; |
| 35 | QAbstractHttpServer *server; |
| 36 | |
| 37 | bool verifyThreadAffinity(const QObject *contextObject) const; |
| 38 | }; |
| 39 | |
| 40 | QT_END_NAMESPACE |
| 41 | |
| 42 | #endif // QHTTPSERVERROUTER_P_H |
| 43 | |