1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QHTTPSERVERRESPONSE_P_H
5#define QHTTPSERVERRESPONSE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of QHttpServerResponse. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16
17#include <private/qabstracthttpserver_p.h>
18
19#include <QtHttpServer/qhttpserverresponse.h>
20#include <QtNetwork/qhttpheaders.h>
21
22#include <functional>
23#include <unordered_map>
24
25QT_BEGIN_NAMESPACE
26
27class QHttpServerResponsePrivate
28{
29public:
30 QHttpServerResponsePrivate(QByteArray &&d, const QHttpServerResponse::StatusCode sc);
31 QHttpServerResponsePrivate(const QHttpServerResponse::StatusCode sc);
32
33 QByteArray data;
34 QHttpServerResponse::StatusCode statusCode;
35 QHttpHeaders headers;
36};
37
38QT_END_NAMESPACE
39
40#endif // QHTTPSERVERRESPONSE_P_H
41

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

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