7#include <QtCore/private/qnumeric_p.h>
8#include <QtCore/qhashfunctions.h>
13static_assert(
sizeof(QHttp1Configuration) ==
sizeof(
void*),
14 "You have added too many members to QHttp1Configuration::ShortData. "
15 "Decrease their size or switch to using a d-pointer.");
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
37
38
45
46
51
52
53
54
55
56
57
58
61
62
67
68
69
70
71
72
73
74
77
78
83
84
85
86
87
88
89
92 auto n = qt_saturate<
std::uint8_t>(number);
95 u.data.numConnectionsPerHost = n;
99
100
101
102
103
106 return u.data.numConnectionsPerHost;
110
111
112
115
116
117
118
119
120
123
124
125
126
127
128
131
132
133
134
137
138
141 return u.data.numConnectionsPerHost == other.u.data.numConnectionsPerHost;
145
146
149 return qHash(u.data.numConnectionsPerHost, seed);
The QHttp1Configuration class controls HTTP/1 parameters and settings.
Q_NETWORK_EXPORT void setNumberOfConnectionsPerHost(qsizetype amount)
Sets the number of connections (minimum: 1; maximum: 255) used per http(s) {host}:{port}...