QHttp1Configuration Class▲
-
Header: QHttp1Configuration
-
Since: Qt 6.5
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
-
qmake: QT += network
-
Group: QHttp1Configuration is part of Network Programming API, shared
I. Detailed Description▲
QHttp1Configuration controls HTTP/1 parameters and settings that QNetworkAccessManager will use to send requests and process responses.
The configuration must be set before the first request was sent to a given host (and thus an HTTP/1 session established).
I-1. See Also▲
II. Member Function Documentation▲
II-1. QHttp1Configuration::QHttp1Configuration()▲
Default constructs a QHttp1Configuration object.
II-2. QHttp1Configuration::QHttp1Configuration(const QHttp1Configuration &other)▲
Copy-constructs this QHttp1Configuration.
II-3. QHttp1Configuration::QHttp1Configuration(QHttp1Configuration &&other)▲
Move-constructs this QHttp1Configuration from other.
The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.
II-4. QHttp1Configuration::~QHttp1Configuration()▲
Destructor.
II-5. qsizetype QHttp1Configuration::numberOfConnectionsPerHost() const▲
Returns the number of connections used per http(s) host:port combination. The default is six (6).
II-5-1. See Also▲
See also setNumberOfConnectionsPerHost
II-6. void QHttp1Configuration::setNumberOfConnectionsPerHost(qsizetype number)▲
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.
II-6-1. See Also▲
See also numberOfConnectionsPerHost
II-7. void QHttp1Configuration::swap(QHttp1Configuration &other)▲
Swaps this HTTP/1 configuration with other. This operation is very fast and never fails.
II-8. QHttp1Configuration &QHttp1Configuration::operator=(const QHttp1Configuration &other)▲
Copy-assigns other to this QHttp1Configuration.
II-9. QHttp1Configuration &QHttp1Configuration::operator=(QHttp1Configuration &&other)▲
Move-assigns other to this QHttp1Configuration.
The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.
III. Related Non-Members▲
III-1. [since 6.5] size_t qHash(const QHttp1Configuration &key, size_t seed = 0)▲
Returns the hash value for the key, using seed to seed the calculation.
This function was introduced in Qt 6.5.
III-2. [since 6.5] bool operator!=(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)▲
Returns true if lhs and rhs do not represent the same set of HTTP/1 parameters.
This function was introduced in Qt 6.5.
III-3. [since 6.5] bool operator==(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)▲
Returns true if lhs and rhs represent the same set of HTTP/1 parameters.
This function was introduced in Qt 6.5.