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) | |
void | validateServer (ServerBlock &server) |
void | validateLocation (LocationBlock &location, ServerBlock const &server) |
void | validateListen (ServerBlock &server) |
void | validateRoot (Block &block) |
void | validateServerNames (ServerBlock &server) |
Static Private Member Functions | |
static void | locationCompleteRoot (LocationBlock &l, ServerBlock const &s) |
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 |
|
private |
|
staticprivate |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |