PySide6.QtNetwork.QHttp1Configuration¶
- class QHttp1Configuration¶
- The - QHttp1Configurationclass controls HTTP/1 parameters and settings.- Details- QHttp1Configurationcontrols HTTP/1 parameters and settings that- QNetworkAccessManagerwill 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). - 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 - __init__()¶
 - Default constructs a - QHttp1Configurationobject.- __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 - trueif- lhsand- rhsdo not represent the same set of HTTP/1 parameters.- __eq__(rhs)¶
- Parameters:
- rhs – - QHttp1Configuration
- Return type:
- bool 
 
 - Returns - trueif- lhsand- rhsrepresent 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 - numberis ≤ 0, does nothing. If- numberis > 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.