Webserv
|
Represents a single 'location' block from the configuration file. More...
#include <LocationBlock.hpp>
Public Member Functions | |
std::string const & | getPath () const |
void | setPath (std::string const &) |
StringVector const * | getIndexFiles () const |
bool | hasCgiPass () const |
Public Member Functions inherited from config::Block | |
virtual | ~Block () |
bool | has (std::string const &key) const |
Checks if a directive exists within the block. | |
StringVector const * | operator[] (std::string const &key) const |
StringVector & | operator[] (std::string const &key) |
void | add (std::string const &key, StringVector const &values) |
void | add (std::string const &key, std::string const &value) |
DirectiveMap const & | getDirectives () const |
Provides read-only access to the underlying directive map. | |
DirectiveMap & | getDirectives () |
Provides read-write access to the underlying directive map. | |
StringVector const * | get (std::string const &key) const |
Retrieves the arguments for a specific directive. | |
std::string | getRoot () const |
A convenient, strongly-typed accessor for the 'root' directive. | |
void | setRoot (std::string const &root) |
Private Attributes | |
std::string | path_ |
Additional Inherited Members | |
Protected Attributes inherited from config::Block | |
DirectiveMap | directives_ |
Represents a single 'location' block from the configuration file.
This class is a strongly-typed container for the directives defined within a location context. It holds settings such as the document root and index files for a specific URI path.
StringVector const * config::LocationBlock::getIndexFiles | ( | ) | const |
std::string const & config::LocationBlock::getPath | ( | ) | const |
bool config::LocationBlock::hasCgiPass | ( | ) | const |
void config::LocationBlock::setPath | ( | std::string const & | v | ) |
|
private |