#include <nawa/filter/AccessFilter/ext/BlockFilter.h>
Inherits nawa::AccessFilter.
Public Member Functions | |
~BlockFilter () override | |
BlockFilter () | |
BlockFilter (BlockFilter const &other) | |
BlockFilter & | operator= (const BlockFilter &other) |
BlockFilter (BlockFilter &&other) noexcept | |
BlockFilter & | operator= (BlockFilter &&other) noexcept |
unsigned int & | status () noexcept |
unsigned int | status () const noexcept |
BlockFilter & | status (unsigned int 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 |
Defines a request blocking filter.
Definition at line 33 of file BlockFilter.h.
|
override |
nawa::BlockFilter::BlockFilter | ( | ) |
nawa::BlockFilter::BlockFilter | ( | BlockFilter const & | other | ) |
|
noexcept |
BlockFilter & nawa::BlockFilter::operator= | ( | const BlockFilter & | other | ) |
|
noexcept |
|
noexcept |
The HTTP status that will be sent to the client if the request is blocked.
|
noexcept |
|
noexcept |