Class: QgsBufferServerRequest

class qgis.server.QgsBufferServerRequest

Bases: qgis._server.QgsServerRequest

Class defining request with data

New in version 3.0.

QgsBufferServerRequest(url: str, method: QgsServerRequest.Method = QgsServerRequest.GetMethod, headers: Dict[str, str] = {}, data: Union[QByteArray, bytes, bytearray] = None) Constructor

Parameters:
  • url – the url string

  • method – the request method, default to GET

  • headers – optional dictionary of header name-values

  • data – optional POST data

QgsBufferServerRequest(url: QUrl, method: QgsServerRequest.Method = QgsServerRequest.GetMethod, headers: Dict[str, str] = {}, data: Union[QByteArray, bytes, bytearray] = None) Constructor

Parameters:
  • url – QUrl

  • method – the request method, default to GET

  • headers – optional dictionary of header name-values

  • data – optional POST data

QgsBufferServerRequest(QgsBufferServerRequest)

Methods

data

rtype:

QByteArray

setBaseUrl

Set the base URL of QGIS server

setOriginalUrl

Set the request original url (the request url as seen by the web server)

data(self) QByteArray
Return type:

QByteArray

setBaseUrl(self, url: QUrl)

Set the base URL of QGIS server

New in version 3.20.

setOriginalUrl(self, url: QUrl)

Set the request original url (the request url as seen by the web server)

See also

setUrl()

New in version 3.6.