Class: QgsServerStaticHandler¶
Serves static files from the static path (resources/server/api/ogc/static).
See also
QgsServerOgcApiHandler.staticPath()
Added in version 3.16.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
An abstract class which represents an OGC API handler to be registered in |
- 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()
See also
- __init__(a0: QgsServerStaticHandler)
- Parameters: