// Copyright (C) 2019 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef QHTTPSERVER_P_H #define QHTTPSERVER_P_H // // W A R N I N G // ------------- // // This file is not part of the Qt API. It exists for the convenience // of QHttpServer. This header file may change from version to // version without notice, or even be removed. // // We mean it. #include #include #include #include #include #include #include QT_BEGIN_NAMESPACE class QHttpServerPrivate: public QAbstractHttpServerPrivate { Q_DECLARE_PUBLIC(QHttpServer) public: QHttpServerPrivate(QHttpServer *p); QHttpServerRouter router; struct AfterRequestHandler { QPointer context; QtPrivate::SlotObjUniquePtr slotObject; }; std::vector afterRequestHandlers; struct MissingHandler { QPointer context = nullptr; QtPrivate::SlotObjUniquePtr slotObject; } missingHandler; void callMissingHandler(const QHttpServerRequest &request, QHttpServerResponder &responder); }; QT_END_NAMESPACE #endif // QHTTPSERVER_P_H