|
Webserv
|
Performs semantic validation on mapped configuration blocks. More...
#include <Validator.hpp>
Static Public Member Functions | |
| static void | validate (ServerBlockVec &servers, bool perform_fs_checks=true) |
Private Member Functions | |
| Validator () | |
| Validator (bool perform_fs_checks=true) | |
Static Private Member Functions | |
| static void | validateServer (ServerBlock &b) |
| static void | validateLocation (LocationBlock &b, ServerBlock const &server) |
| static void | validateGlobalConstraints (ServerBlockVec const &servers) |
| static void | validateRoot (Block &b) |
| static void | validateIndex (Block &b) |
Private Attributes | |
| bool | perform_fs_checks_ |
Performs semantic validation on mapped configuration blocks.
After the Mapper creates the structure, this class inspects the values to ensure they are valid and logical (e.g., port numbers are in range, required directives are present).
|
private |
|
explicitprivate |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |