File: qgsserverstatichandler.sip.in

package info (click to toggle)
qgis 3.40.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,183,672 kB
  • sloc: cpp: 1,595,771; python: 372,544; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 161
file content (59 lines) | stat: -rw-r--r-- 2,484 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/server/qgsserverstatichandler.h                                  *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/


class QgsServerStaticHandler : QgsServerOgcApiHandler
{
%Docstring(signature="appended")
The :py:class:`QgsServerStaticHandler` class serves static files from
the static path (resources/server/api/wfs3/static)

.. seealso:: :py:func:`QgsServerOgcApiHandler.staticPath`

.. versionadded:: 3.16
%End

%TypeHeaderCode
#include "qgsserverstatichandler.h"
%End
  public:
    QgsServerStaticHandler( const QString &pathRegExp = QStringLiteral( "/static/(?<staticFilePath>.*)$" ), const QString &staticPathSuffix = QString() );
%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.py again   *
 ************************************************************************/