![]() |
Qt 6.x
The Qt SDK
|
The QHttp1Configuration class controls HTTP/1 parameters and settings. More...
#include <qhttp1configuration.h>
Public Member Functions | |
Q_NETWORK_EXPORT | QHttp1Configuration () |
Default constructs a QHttp1Configuration object. | |
Q_NETWORK_EXPORT | QHttp1Configuration (const QHttp1Configuration &other) |
Copy-constructs this QHttp1Configuration. | |
QHttp1Configuration (QHttp1Configuration &&other) noexcept | |
Move-constructs this QHttp1Configuration from other. | |
Q_NETWORK_EXPORT QHttp1Configuration & | operator= (const QHttp1Configuration &other) |
Copy-assigns other to this QHttp1Configuration. | |
Q_NETWORK_EXPORT | ~QHttp1Configuration () |
Destructor. | |
Q_NETWORK_EXPORT void | setNumberOfConnectionsPerHost (qsizetype amount) |
Sets the number of connections (minimum: 1; maximum: 255) used per http(s) {host}:{port} combination to number. | |
Q_NETWORK_EXPORT qsizetype | numberOfConnectionsPerHost () const |
Returns the number of connections used per http(s) {host}:{port} combination. | |
void | swap (QHttp1Configuration &other) noexcept |
Swaps this HTTP/1 configuration with other. | |
Friends | |
bool | operator== (const QHttp1Configuration &lhs, const QHttp1Configuration &rhs) noexcept |
bool | operator!= (const QHttp1Configuration &lhs, const QHttp1Configuration &rhs) noexcept |
size_t | qHash (const QHttp1Configuration &key, size_t seed=0) noexcept |
The QHttp1Configuration class controls HTTP/1 parameters and settings.
\reentrant \inmodule QtNetwork
QHttp1Configuration controls HTTP/1 parameters and settings that QNetworkAccessManager will use to send requests and process responses.
Definition at line 17 of file qhttp1configuration.h.
QHttp1Configuration::QHttp1Configuration | ( | ) |
Default constructs a QHttp1Configuration object.
Definition at line 38 of file qhttp1configuration.cpp.
|
default |
Copy-constructs this QHttp1Configuration.
|
inlinenoexcept |
Move-constructs this QHttp1Configuration from other.
Definition at line 22 of file qhttp1configuration.h.
References other().
|
default |
Destructor.
qsizetype QHttp1Configuration::numberOfConnectionsPerHost | ( | ) | const |
Returns the number of connections used per http(s) {host}:{port} combination.
The default is six (6).
Definition at line 103 of file qhttp1configuration.cpp.
Referenced by QHttpThreadDelegate::startRequest().
|
default |
Copy-assigns other to this QHttp1Configuration.
Move-assigns other to this QHttp1Configuration.
Sets the number of connections (minimum: 1; maximum: 255) used per http(s) {host}:{port} combination to number.
If number is ≤ 0, does nothing. If number is > 255, 255 is used.
Definition at line 89 of file qhttp1configuration.cpp.
References number.
|
inlinenoexcept |
Swaps this HTTP/1 configuration with other.
This operation is very fast and never fails.
Definition at line 33 of file qhttp1configuration.h.
References other().
|
friend |
Returns true
if lhs and rhs do not represent the same set of HTTP/1 parameters.
Definition at line 52 of file qhttp1configuration.h.
|
friend |
Returns true
if lhs and rhs represent the same set of HTTP/1 parameters.
Definition at line 50 of file qhttp1configuration.h.
|
friend |
Returns the hash value for the key, using seed to seed the calculation.
Definition at line 55 of file qhttp1configuration.h.