#include <LocationConf.hpp>
Definition at line 14 of file LocationConf.hpp.
◆ LocationConf() [1/2]
| LocationConf::LocationConf |
( |
| ) |
|
◆ LocationConf() [2/2]
◆ ~LocationConf()
| LocationConf::~LocationConf |
( |
| ) |
|
◆ operator=()
◆ getPath()
| const std::string & LocationConf::getPath |
( |
| ) |
const |
◆ getRoot()
| const std::string & LocationConf::getRoot |
( |
| ) |
const |
◆ getAllowedMethods()
◆ getReturnURL()
| const std::string & LocationConf::getReturnURL |
( |
| ) |
const |
◆ getReturnCode()
| const std::string & LocationConf::getReturnCode |
( |
| ) |
const |
◆ getAutoIndex()
| bool LocationConf::getAutoIndex |
( |
| ) |
const |
◆ getDefaultPage()
| const std::string & LocationConf::getDefaultPage |
( |
| ) |
const |
◆ getStorageLocation()
| const std::string & LocationConf::getStorageLocation |
( |
| ) |
const |
◆ getCgiInterpreter()
| std::string LocationConf::getCgiInterpreter |
( |
const std::string & |
ext | ) |
const |
◆ setPath()
| void LocationConf::setPath |
( |
const std::string & |
path | ) |
|
◆ setRoot()
| void LocationConf::setRoot |
( |
const std::string & |
root | ) |
|
◆ addAllowedMethod()
| void LocationConf::addAllowedMethod |
( |
HTTPMethod |
method | ) |
|
◆ setReturnURL()
| void LocationConf::setReturnURL |
( |
const std::string & |
url | ) |
|
◆ setReturnCode()
| void LocationConf::setReturnCode |
( |
const std::string & |
code | ) |
|
◆ setAutoIndex()
| void LocationConf::setAutoIndex |
( |
bool |
autoIndex | ) |
|
◆ setDefaultPage()
| void LocationConf::setDefaultPage |
( |
const std::string & |
defaultPage | ) |
|
◆ setStorageLocation()
| void LocationConf::setStorageLocation |
( |
const std::string & |
storageLocation | ) |
|
◆ addCgiInterpreter()
| void LocationConf::addCgiInterpreter |
( |
const std::string & |
ext, |
|
|
const std::string & |
interpreterPath |
|
) |
| |
◆ isMethodAllowed()
| bool LocationConf::isMethodAllowed |
( |
HTTPMethod |
method | ) |
const |
Checks if a specific HTTP method is permitted in this location.
- Parameters
-
| method | The method to check (e.g., GET, POST). |
- Returns
- true if allowed, false otherwise.
Definition at line 104 of file LocationConf.cpp.
◆ isCgiExtension()
| bool LocationConf::isCgiExtension |
( |
const std::string & |
ext | ) |
const |
Checks if a given file extension should be handled by CGI.
- Parameters
-
| ext | The extension including the dot (e.g., ".py"). |
- Returns
- true if this extension is configured as a CGI extension.
Definition at line 122 of file LocationConf.cpp.
◆ _path
| std::string LocationConf::_path |
|
private |
◆ _root
| std::string LocationConf::_root |
|
private |
◆ _allowedMethods
◆ _returnURL
| std::string LocationConf::_returnURL |
|
private |
◆ _returnCode
| std::string LocationConf::_returnCode |
|
private |
◆ _autoIndex
| bool LocationConf::_autoIndex |
|
private |
◆ _defaultPage
| std::string LocationConf::_defaultPage |
|
private |
◆ _storageLocation
| std::string LocationConf::_storageLocation |
|
private |
◆ _cgiInterpreters
| std::map<std::string, std::string> LocationConf::_cgiInterpreters |
|
private |
The documentation for this class was generated from the following files: