Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qhttp2configuration.h
Go to the documentation of this file.
1
// Copyright (C) 2019 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_H
6
#
define
QHTTP2CONFIGURATION_H
7
8
#
include
<
QtNetwork
/
qtnetworkglobal
.
h
>
9
10
#
include
<
QtCore
/
qshareddata
.
h
>
11
12
QT_REQUIRE_CONFIG
(
http
);
13
14
QT_BEGIN_NAMESPACE
15
16
class
QHttp2ConfigurationPrivate;
17
class
Q_NETWORK_EXPORT
QHttp2Configuration
18
{
19
public
:
20
QHttp2Configuration();
21
QHttp2Configuration(
const
QHttp2Configuration &other);
22
QHttp2Configuration(QHttp2Configuration &&other)
noexcept
;
23
QHttp2Configuration &operator = (
const
QHttp2Configuration &other);
24
QHttp2Configuration &operator = (QHttp2Configuration &&other)
noexcept
;
25
26
~QHttp2Configuration();
27
28
void
setServerPushEnabled(
bool
enable);
29
bool
serverPushEnabled()
const
;
30
31
void
setHuffmanCompressionEnabled(
bool
enable);
32
bool
huffmanCompressionEnabled()
const
;
33
34
bool
setSessionReceiveWindowSize(
unsigned
size);
35
unsigned
sessionReceiveWindowSize()
const
;
36
37
bool
setStreamReceiveWindowSize(
unsigned
size);
38
unsigned
streamReceiveWindowSize()
const
;
39
40
bool
setMaxFrameSize(
unsigned
size);
41
unsigned
maxFrameSize()
const
;
42
43
void
setMaxConcurrentStreams(
unsigned
value);
44
unsigned
maxConcurrentStreams()
const
;
45
46
void
setMaxHeaderListSize(quint32 size);
47
quint32 maxHeaderListSize()
const
;
48
49
void
swap(QHttp2Configuration &other)
noexcept
;
50
51
private
:
52
friend
class
QHttp2ConfigurationPrivate;
53
QSharedDataPointer<QHttp2ConfigurationPrivate> d;
54
55
bool
isEqual(
const
QHttp2Configuration &other)
const
noexcept
;
56
57
friend
bool
operator==(
const
QHttp2Configuration &lhs,
const
QHttp2Configuration &rhs)
noexcept
58
{
return
lhs.isEqual(rhs); }
59
friend
bool
operator!=(
const
QHttp2Configuration &lhs,
const
QHttp2Configuration &rhs)
noexcept
60
{
return
!lhs.isEqual(rhs); }
61
62
};
63
64
Q_DECLARE_SHARED
(
QHttp2Configuration
)
65
66
QT_END_NAMESPACE
67
68
#
endif
// QHTTP2CONFIGURATION_H
QHttp2Configuration
The QHttp2Configuration class controls HTTP/2 parameters and settings.
Definition
qhttp2configuration.h:18
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(liburing)
qtbase
src
network
access
qhttp2configuration.h
Generated on
for Qt by
1.18.0