/src/qtbase/src/network/access/qhttp2configuration_p.h
Line | Count | Source |
1 | | // Copyright (C) 2026 The Qt Company Ltd. |
2 | | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | | // Qt-Security score:significant reason:default |
4 | | |
5 | | #ifndef QHTTP2CONFIGURATION_P_H |
6 | | #define QHTTP2CONFIGURATION_P_H |
7 | | |
8 | | // |
9 | | // W A R N I N G |
10 | | // ------------- |
11 | | // |
12 | | // This file is not part of the Qt API. It exists for the convenience |
13 | | // of the Network Access API. This header file may change from |
14 | | // version to version without notice, or even be removed. |
15 | | // |
16 | | // We mean it. |
17 | | // |
18 | | |
19 | | #include <private/http2protocol_p.h> |
20 | | #include <private/qhttpheaderparser_p.h> |
21 | | #include <private/qtnetworkglobal_p.h> |
22 | | |
23 | | #include <QtNetwork/qhttp2configuration.h> |
24 | | |
25 | | #include <QtCore/qshareddata.h> |
26 | | |
27 | | QT_BEGIN_NAMESPACE |
28 | | |
29 | | class QHttp2ConfigurationPrivate : public QSharedData |
30 | | { |
31 | | public: |
32 | | unsigned sessionWindowSize = Http2::defaultSessionWindowSize; |
33 | | unsigned streamWindowSize = Http2::defaultSessionWindowSize; |
34 | | |
35 | | unsigned maxFrameSize = Http2::minPayloadLimit; // Initial (default) value of 16Kb. |
36 | | |
37 | | unsigned maxConcurrentStreams = Http2::maxConcurrentStreams; |
38 | | |
39 | | quint32 maxHeaderListSize = HeaderConstants::DEFAULT_MAX_TOTAL_HEADER_SIZE; // 256 KiB |
40 | | |
41 | | bool pushEnabled = false; |
42 | | // TODO: for now those two below are noop. |
43 | | bool huffmanCompressionEnabled = true; |
44 | | |
45 | 0 | static QHttp2ConfigurationPrivate *get(QHttp2Configuration &config) { return config.d.data(); } |
46 | | static const QHttp2ConfigurationPrivate *get(const QHttp2Configuration &config) |
47 | 0 | { |
48 | 0 | return config.d.data(); |
49 | 0 | } |
50 | | }; |
51 | | |
52 | | QT_END_NAMESPACE |
53 | | |
54 | | #endif // QHTTP2CONFIGURATION_P_H |