Class: QgsNetworkRequestParameters

class qgis.core.QgsNetworkRequestParameters

Bases: sip.wrapper

Default constructor.

QgsNetworkRequestParameters(operation: QNetworkAccessManager.Operation, request: QNetworkRequest, requestId: int, content: Union[QByteArray, bytes, bytearray] = QByteArray()) Constructor for QgsNetworkRequestParameters, with the specified network operation and original request.

QgsNetworkRequestParameters(QgsNetworkRequestParameters)

Encapsulates parameters and properties of a network request.

New in version 3.6: Methods

content Returns the request’s content.
initiatorClassName Returns the class name of the object which initiated this request.
initiatorRequestId Returns the internal ID used by the object which initiated this request to identify individual requests.
operation Returns the request operation, e.g.
originatingThreadId Returns a string identifying the thread which the request originated from.
request Returns the network request.
requestId Returns a unique ID identifying the request.

Signals

Attributes

AttributeInitiatorClass
AttributeInitiatorRequestId
AttributeInitiatorClass = 4000
AttributeInitiatorRequestId = 4001
class RequestAttributes

Bases: int

content(self) → QByteArray

Returns the request’s content. This is only used for POST or PUT operation requests.

initiatorClassName(self) → str

Returns the class name of the object which initiated this request.

This is only available for QNetworkRequests which have had the QgsNetworkRequestParameters.AttributeInitiatorClass attribute set.

initiatorRequestId(self) → Any

Returns the internal ID used by the object which initiated this request to identify individual requests.

This is only available for QNetworkRequests which have had the QgsNetworkRequestParameters.AttributeInitiatorRequestId attribute set.

operation(self) → QNetworkAccessManager.Operation

Returns the request operation, e.g. GET or POST.

originatingThreadId(self) → str

Returns a string identifying the thread which the request originated from.

request(self) → QNetworkRequest

Returns the network request.

This is the original network request sent to QgsNetworkAccessManager, but with QGIS specific configuration options such as proxy handling and SSL exceptions applied.

requestId(self) → int

Returns a unique ID identifying the request.