class QHttp1Configuration

The QHttp1Configuration class controls HTTP/1 parameters and settings. More

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

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).

__init__()

Default constructs a QHttp1Configuration object.

__init__(other)
Parameters:

otherQHttp1Configuration

Copy-constructs this QHttp1Configuration .

numberOfConnectionsPerHost()
Return type:

int

Returns the number of connections used per http(s) host:port combination. The default is six (6).

__ne__(rhs)
Parameters:

rhsQHttp1Configuration

Return type:

bool

Returns true if lhs and rhs do not represent the same set of HTTP/1 parameters.

__eq__(rhs)
Parameters:

rhsQHttp1Configuration

Return type:

bool

Returns true if lhs and rhs represent the same set of HTTP/1 parameters.

setNumberOfConnectionsPerHost(amount)
Parameters:

amount – int

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.

swap(other)
Parameters:

otherQHttp1Configuration

Swaps this HTTP/1 configuration with other. This operation is very fast and never fails.