Class: QgsFcgiServerRequest

class qgis.server.QgsFcgiServerRequest

Bases: qgis._server.QgsServerRequest

Class defining fcgi request

Methods

data

rtype

QByteArray

hasError

Returns True if an error occurred during initialization

header

Returns the header value

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

hasError(self)bool

Returns True if an error occurred during initialization

Return type

bool

header(self, name: str)str

Returns the header value

Parameters

name (str) – of the header

Return type

str

Returns

the header value or an empty string

New in version 3.20.

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.