1 | // Copyright (C) 2019 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QHTTPSERVERRESPONDER_P_H |
5 | #define QHTTPSERVERRESPONDER_P_H |
6 | |
7 | #include <QtHttpServer/qthttpserverglobal.h> |
8 | #include <QtHttpServer/qhttpserverrequest.h> |
9 | #include <QtHttpServer/qhttpserverresponder.h> |
10 | |
11 | #include <private/qhttpserverstream_p.h> |
12 | |
13 | #include <QtCore/qcoreapplication.h> |
14 | #include <QtCore/qpair.h> |
15 | #include <QtCore/qpointer.h> |
16 | #include <QtCore/qsysinfo.h> |
17 | |
18 | #include <type_traits> |
19 | |
20 | // |
21 | // W A R N I N G |
22 | // ------------- |
23 | // |
24 | // This file is not part of the Qt API. It exists for the convenience |
25 | // of QHttpServer. This header file may change from version to |
26 | // version without notice, or even be removed. |
27 | // |
28 | // We mean it. |
29 | |
30 | QT_BEGIN_NAMESPACE |
31 | |
32 | class QHttpServerResponderPrivate |
33 | { |
34 | public: |
35 | QHttpServerResponderPrivate(QHttpServerStream *stream) : stream(stream) { } |
36 | |
37 | #if defined(QT_DEBUG) |
38 | const QPointer<QHttpServerStream> stream; |
39 | #else |
40 | QHttpServerStream *const stream; |
41 | #endif |
42 | bool bodyStarted{false}; |
43 | }; |
44 | |
45 | QT_END_NAMESPACE |
46 | |
47 | #endif // QHTTPSERVERRESPONDER_P_H |
48 | |