Class: QgsServerStaticHandler

The QgsServerStaticHandler class serves static files from the static path (resources/server/api/wfs3/static)

See also

QgsServerOgcApiHandler.staticPath()

Added in version 3.16.

Class Hierarchy

Inheritance diagram of qgis.server.QgsServerStaticHandler

Base classes

QgsServerOgcApiHandler

The QgsServerOgcApiHandler abstract class represents a OGC API handler to be registered in QgsServerOgcApi class.

class qgis.server.QgsServerStaticHandler[source]

Bases: QgsServerOgcApiHandler

__init__(pathRegExp: str | None = '', staticPathSuffix: str | None = '')

Creates QgsServerStaticHandler

Parameters:
  • pathRegExp (Optional[str] = '') – optional regular expression to capture static file names, defaults to “/static/(?<staticFilePath>.*)$”, note that the file path is captured in a named group “staticFilePath”

  • staticPathSuffix (Optional[str] = '') – optional path suffix to use when static files are stored in a subdirectory of the default staticPath()

__init__(a0: QgsServerStaticHandler)
Parameters:

a0 (QgsServerStaticHandler)