QHttp1Configuration Class
The QHttp1Configuration class controls HTTP/1 parameters and settings. \since
6.5. More...
Header: | #include <QHttp1Configuration> |
Public Functions
QHttp1Configuration() | |
QHttp1Configuration(const QHttp1Configuration &other) | |
QHttp1Configuration(QHttp1Configuration &&other) | |
~QHttp1Configuration() | |
int | numberOfConnectionsPerHost() const |
void | setNumberOfConnectionsPerHost(int number) |
void | swap(QHttp1Configuration &other) |
QHttp1Configuration & | operator=(const QHttp1Configuration &other) |
QHttp1Configuration & | operator=(QHttp1Configuration &&other) |
Related Non-Members
size_t | qHash(const QHttp1Configuration &key, size_t seed = 0) |
bool | operator!=(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs) |
bool | operator==(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs) |
Detailed Description
\reentrant
\inmodule
QtNetwork \ingroup
network \ingroup
shared
QHttp1Configuration controls HTTP/1 parameters and settings that QNetworkAccessManager will use to send requests and process responses.
Note: The configuration must be set before the first request was sent to a given host (and thus an HTTP/1 session established).
See also QNetworkRequest::setHttp1Configuration(), QNetworkRequest::http1Configuration(), and QNetworkAccessManager.
Member Function Documentation
QHttp1Configuration::QHttp1Configuration()
Default constructs a QHttp1Configuration object.
QHttp1Configuration::QHttp1Configuration(const QHttp1Configuration &other)
Copy-constructs this QHttp1Configuration.
[noexcept]
QHttp1Configuration::QHttp1Configuration(QHttp1Configuration &&other)
Move-constructs this QHttp1Configuration from other.
Note: 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.
[noexcept]
QHttp1Configuration::~QHttp1Configuration()
Destructor.
int QHttp1Configuration::numberOfConnectionsPerHost() const
Returns the number of connections used per http(s) host
:port combination. The default is six (6).
See also setNumberOfConnectionsPerHost.
void QHttp1Configuration::setNumberOfConnectionsPerHost(int 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.
See also numberOfConnectionsPerHost.
[noexcept]
void QHttp1Configuration::swap(QHttp1Configuration &other)
Swaps this HTTP/1 configuration with other. This operation is very fast and never fails.
QHttp1Configuration &QHttp1Configuration::operator=(const QHttp1Configuration &other)
Copy-assigns other to this QHttp1Configuration.
[noexcept]
QHttp1Configuration &QHttp1Configuration::operator=(QHttp1Configuration &&other)
Move-assigns other to this QHttp1Configuration.
Note: 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.
Related Non-Members
[noexcept]
size_t qHash(const QHttp1Configuration &key, size_t seed = 0)
\since
6.5
Returns the hash value for the key, using seed to seed the calculation.
[noexcept]
bool operator!=(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)
\since
6.5
Returns true
if lhs and rhs do not represent the same set of HTTP/1 parameters.
[noexcept]
bool operator==(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)
\since
6.5
Returns true
if lhs and rhs represent the same set of HTTP/1 parameters.