- class QHttp1Configuration¶
The
QHttp1Configuration
class controls HTTP/1 parameters and settings. More…Synopsis¶
Methods¶
def
__init__()
def
__ne__()
def
__eq__()
def
swap()
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 thatQNetworkAccessManager
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:
other –
QHttp1Configuration
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).See also
- __ne__(rhs)¶
- Parameters:
rhs –
QHttp1Configuration
- Return type:
bool
Returns
true
iflhs
andrhs
do not represent the same set of HTTP/1 parameters.- __eq__(rhs)¶
- Parameters:
rhs –
QHttp1Configuration
- Return type:
bool
Returns
true
iflhs
andrhs
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. Ifnumber
is > 255, 255 is used.See also
- swap(other)¶
- Parameters:
other –
QHttp1Configuration
Swaps this HTTP/1 configuration with
other
. This operation is very fast and never fails.