2020-08-06 14:51:22 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverstatichandler.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsServerStaticHandler: QgsServerOgcApiHandler
{
2021-03-22 21:13:52 +01:00
%Docstring(signature="appended")
2021-01-30 09:16:35 +10:00
The :py:class:`QgsServerStaticHandler` class serves static files from the static path (resources/server/api/wfs3/static)
2020-08-06 14:51:22 +02:00
.. seealso:: :py:func:`QgsServerOgcApiHandler.staticPath`
.. versionadded:: 3.16
%End
%TypeHeaderCode
#include "qgsserverstatichandler.h"
%End
public:
2020-08-06 15:57:38 +02:00
QgsServerStaticHandler( const QString &pathRegExp = QStringLiteral( "/static/(?<staticFilePath>.*)$" ), const QString &staticPathSuffix = QString( ) );
2020-08-06 14:51:22 +02:00
%Docstring
Creates QgsServerStaticHandler
:param 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"
:param staticPathSuffix: optional path suffix to use when static files are stored in a subdirectory of the default :py:func:`~QgsServerStaticHandler.staticPath`
.. seealso:: :py:func:`QgsServerOgcApiHandler.staticPath`
%End
virtual void handleRequest( const QgsServerApiContext &context ) const;
virtual QRegularExpression path() const;
virtual std::string operationId() const;
virtual std::string summary() const;
virtual std::string description() const;
virtual std::string linkTitle() const;
virtual QgsServerOgcApi::Rel linkType() const;
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverstatichandler.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/