Class: QgsServer

class qgis.server.QgsServer

Bases: sip.wrapper

Creates the server instance

The QgsServer class provides OGC web services.

Methods

handleRequest

Handles the request.

initPython

Initialize Python

putenv

Set environment variable

serverInterface

Returns a pointer to the server interface

handleRequest(self, request: QgsServerRequest, response: QgsServerResponse, project: QgsProject = None)

Handles the request. The query string is normally read from environment but can be also passed in args and in this case overrides the environment variable

Parameters
initPython(self)

Initialize Python

Note

not available in Python bindings

putenv(self, var: str, val: str)

Set environment variable

Parameters
  • var (str) – environment variable name

  • val (str) – value

New in version 2.14.

serverInterface(self)QgsServerInterface

Returns a pointer to the server interface

Return type

QgsServerInterface