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

source code of qthttpserver/src/httpserver/qhttpserverrouter_p.h