#include <nawa/filter/AccessFilter/ext/ForwardFilter.h>
Inherits nawa::AccessFilter.
Public Types | |
enum class | BasePathExtension { BY_FILENAME , BY_PATH } |
Public Member Functions | |
~ForwardFilter () override | |
ForwardFilter () | |
ForwardFilter (ForwardFilter const &other) | |
ForwardFilter & | operator= (const ForwardFilter &other) |
ForwardFilter (ForwardFilter &&other) noexcept | |
ForwardFilter & | operator= (ForwardFilter &&other) noexcept |
std::string & | basePath () noexcept |
std::string const & | basePath () const noexcept |
ForwardFilter & | basePath (std::string value) noexcept |
BasePathExtension & | basePathExtension () noexcept |
BasePathExtension | basePathExtension () const noexcept |
ForwardFilter & | basePathExtension (BasePathExtension value) noexcept |
Public Member Functions inherited from nawa::AccessFilter | |
virtual | ~AccessFilter () |
AccessFilter () | |
AccessFilter (AccessFilter const &other) | |
AccessFilter & | operator= (const AccessFilter &other) |
AccessFilter (AccessFilter &&other) noexcept | |
AccessFilter & | operator= (AccessFilter &&other) noexcept |
bool & | invert () noexcept |
bool | invert () const noexcept |
AccessFilter & | invert (bool value) noexcept |
std::vector< std::vector< std::string > > & | pathFilter () noexcept |
std::vector< std::vector< std::string > > const & | pathFilter () const noexcept |
AccessFilter & | pathFilter (std::vector< std::vector< std::string > > value) noexcept |
bool & | invertPathFilter () noexcept |
bool | invertPathFilter () const noexcept |
AccessFilter & | invertPathFilter (bool value) noexcept |
std::vector< std::string > & | extensionFilter () noexcept |
std::vector< std::string > const & | extensionFilter () const noexcept |
AccessFilter & | extensionFilter (std::vector< std::string > value) noexcept |
bool & | invertExtensionFilter () noexcept |
bool | invertExtensionFilter () const noexcept |
AccessFilter & | invertExtensionFilter (bool value) noexcept |
bool & | regexFilterEnabled () noexcept |
bool | regexFilterEnabled () const noexcept |
AccessFilter & | regexFilterEnabled (bool value) noexcept |
std::regex & | regexFilter () noexcept |
std::regex const & | regexFilter () const noexcept |
AccessFilter & | regexFilter (std::regex value) noexcept |
std::string & | response () noexcept |
std::string const & | response () const noexcept |
AccessFilter & | response (std::string value) noexcept |
bool | matches (std::vector< std::string > const &requestPath) const |
Filter to bypass the NAWA app for certain requests and directly forward files to the client. This is especially useful for media files, e.g. images, as well as CSS stylesheets.
Definition at line 34 of file ForwardFilter.h.
|
strong |
How a file will be looked up below the base path:
Enumerator | |
---|---|
BY_FILENAME | |
BY_PATH |
Definition at line 45 of file ForwardFilter.h.
|
override |
nawa::ForwardFilter::ForwardFilter | ( | ) |
nawa::ForwardFilter::ForwardFilter | ( | ForwardFilter const & | other | ) |
|
noexcept |
ForwardFilter & nawa::ForwardFilter::operator= | ( | const ForwardFilter & | other | ) |
|
noexcept |
|
noexcept |
The path under which the file will be looked up (should be an absolute OS path to the files starting with a '/' and not ending with a '/', e.g., "/var/www/website1").
|
noexcept |
|
noexcept |
|
noexcept |
How the file will be looked up (see explanation of enum BasePathExtension, default: only file name).
|
noexcept |
|
noexcept |