Class: QgsServerStaticHandler¶
- class qgis.server.QgsServerStaticHandler¶
Bases:
qgis._server.QgsServerOgcApiHandler
The
QgsServerStaticHandler
class serves static files from the static path (resources/server/api/wfs3/static)See also
Added in version 3.16.
QgsServerStaticHandler(pathRegExp: Optional[str] = ‘’, staticPathSuffix: Optional[str] = ‘’) Creates QgsServerStaticHandler
- Parameters:
pathRegExp – 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 path suffix to use when static files are stored in a subdirectory of the default
staticPath()
See also
QgsServerStaticHandler(a0:
QgsServerStaticHandler
)Methods
- rtype:
Any
- param context:
- rtype:
Any
- rtype:
QgsServerOgcApi.Rel
- rtype:
Any
- rtype:
QRegularExpression
Set the content types to
contentTypes
- rtype:
Any
- description(self) Any ¶
- Return type:
Any
- handleRequest(self, context: QgsServerApiContext)¶
- Parameters:
context (QgsServerApiContext)
- linkTitle(self) Any ¶
- Return type:
Any
- linkType(self) QgsServerOgcApi.Rel ¶
- Return type:
- operationId(self) Any ¶
- Return type:
Any
- path(self) QRegularExpression ¶
- Return type:
QRegularExpression
- setContentTypes(self, contentTypes: Iterable[int])¶
Set the content types to
contentTypes
- summary(self) Any ¶
- Return type:
Any