Cutelyst  2.13.0
Public Member Functions | List of all members
Cutelyst::StaticSimple Class Reference
Inheritance diagram for Cutelyst::StaticSimple:
Inheritance graph

Public Member Functions

 StaticSimple (Application *parent)
void setDirs (const QStringList &dirs)
void setIncludePaths (const QStringList &paths)
virtual bool setup (Application *app) override
- Public Member Functions inherited from Cutelyst::Plugin
 Plugin (Application *parent)

Detailed Description

Definition at line 28 of file staticsimple.h.

Constructor & Destructor Documentation

◆ StaticSimple()

StaticSimple::StaticSimple ( Application parent)

Constructs a new static simple object with the given parent.

Definition at line 35 of file staticsimple.cpp.

Member Function Documentation

◆ setDirs()

void StaticSimple::setDirs ( const QStringList &  dirs)

Sets a list of top-level directories beneath your 'root' directory that should always be served in static mode.

Definition at line 56 of file staticsimple.cpp.

◆ setIncludePaths()

void StaticSimple::setIncludePaths ( const QStringList &  paths)

Sets a list of directories in which to search for your static files. The directories will be searched in order and will return the first file found. Note that your root directory is not automatically added to the search path when you specify an include_path.

Definition at line 47 of file staticsimple.cpp.

◆ setup()

bool StaticSimple::setup ( Cutelyst::Application app)

Reimplemented from Plugin::setup().

Reimplemented from Cutelyst::Plugin.

Definition at line 62 of file staticsimple.cpp.

References Cutelyst::Application::beforePrepareAction().