42 std::vector<ServerConf>
parse();
51 void _tokenize(
const std::string& content);
55 const std::string&
_peek()
const;
57 void _expect(
const std::string& token);
HTTPMethod
Represents the HTTP methods supported by the server as a bitmask.
This class will be used to collect fatal exceptions, which are exceptions that should cause the progr...
Stores per-server configuration directives. This class encapsulates the configuration for a specific ...
virtual ~ConfigException()
const std::string & _consume()
struct sockaddr_in _parseSockAddr(const std::string &listenValue)
std::vector< ServerConf > parse()
Parses the config file and returns one ServerConf per server block.
void _parseUploadStore(LocationConf &loc)
void _parseRoot(LocationConf &loc)
ServerConf _parseServerBlock()
LocationConf _parseLocationBlock(const std::string &path)
void _parseMethods(LocationConf &loc)
void _parseMaxBodySize(ServerConf &conf)
void _parseServerName(ServerConf &conf)
void _parseIndex(LocationConf &loc)
const std::string & _peek() const
void _tokenize(const std::string &content)
void _expect(const std::string &token)
void _parseErrorPage(ServerConf &conf)
void _parseCgiInterpreter(LocationConf &loc)
void _parseListen(ServerConf &conf)
std::vector< std::string > _tokens
HTTPMethod _parseMethodToken(const std::string &token)
void _parseAutoIndex(LocationConf &loc)
size_t _parseBodySize(const std::string &value)
void _parseReturn(LocationConf &loc)