|
| | ServerBlock () |
| bool | hasLocation (LocationBlock const &) const |
| | Checks if a location with the same path already exists.
|
| void | addLocation (LocationBlock const &) |
| | Adds a new LocationBlock to this server configuration.
|
| LocationBlock const * | matchLocation (http::Request const &req) const |
| | Finds the best-matching location block for a given request URI.
|
| LocationBlock const * | matchPrefixLocation (http::Request const &req) const |
| int | port () const |
| | Gets the port number this server listens on.
|
| std::string const & | address () const |
| | Gets the IP address this server binds to.
|
| ServerBlock & | port (int port) |
| | Sets the port number using a fluent interface.
|
| ServerBlock & | address (std::string const &address) |
| | Sets the IP address using a fluent interface.
|
| | Block (std::string const &name) |
| | Block (const Block &other) |
| Block & | operator= (const Block &other) |
| virtual | ~Block () |
| bool | has (std::string const &key) const |
| | Checks if a directive exists within the block.
|
| ArgumentVector const & | get (std::string const &key) const |
| | Safely gets the values for a directive.
|
| Block & | add (std::string const &key, std::vector< std::string > const &) |
| | Adds a directive with multiple values.
|
| Block & | add (std::string const &key, std::string const &) |
| Block & | add (std::string const &key, std::string const &, std::string const &) |
| Block & | add (std::string const &key, ParsedDirectiveArgs const &args) |
| Block & | add (std::string const &key, ArgumentVector const &values) |
| Block & | add (std::string const &key, ArgumentPtr value) |
| Block & | add (std::string const &key, size_t value) |
| std::vector< std::string > | getRawValues (std::string const &key) const |
| std::string | getFirstRawValue (std::string const &key) const |
| std::vector< std::string > | get (std::string const &key, http::Request const &req) const |
| std::string | getFirstEvaluatedString (std::string const &key, http::Request const &req) const |
| std::string const & | name () const |
| | Gets the name of the block.
|
| std::string | root () const |
| | Gets the root path directive.
|
| std::vector< std::string > | indexFiles () const |
| | Gets the index files directive.
|
| Block & | root (std::string const &) |
| | Sets the root directive using a fluent interface.
|
| size_t | maxBodySize () const |
| Block & | maxBodySize (size_t) |
Represents a single 'server' block from the configuration file.
This class is a strongly-typed container for all the directives and nested location blocks defined within a single server context. It holds settings like the listening port, server names, and a collection of LocationBlock objects.