25 const std::string&
getPath()
const;
26 const std::string&
getRoot()
const;
37 void setPath(
const std::string& path);
38 void setRoot(
const std::string& root);
45 void addCgiInterpreter(
const std::string& ext,
const std::string& interpreterPath);
HTTPMethod
Represents the HTTP methods supported by the server as a bitmask.
A lightweight wrapper for a short bitmap to handle HTTP method validations securely.
const std::string & getReturnURL() const
const std::string & getPath() const
std::string getCgiInterpreter(const std::string &ext) const
void setDefaultPage(const std::string &defaultPage)
const std::string & getStorageLocation() const
void addAllowedMethod(HTTPMethod method)
const std::string & getDefaultPage() const
const std::string & getRoot() const
void setAutoIndex(bool autoIndex)
void addCgiInterpreter(const std::string &ext, const std::string &interpreterPath)
const AllowedMethods & getAllowedMethods() const
void setReturnURL(const std::string &url)
bool isMethodAllowed(HTTPMethod method) const
Checks if a specific HTTP method is permitted in this location.
void setReturnCode(const std::string &code)
bool getAutoIndex() const
std::map< std::string, std::string > _cgiInterpreters
void setRoot(const std::string &root)
const std::string & getReturnCode() const
void setPath(const std::string &path)
void setStorageLocation(const std::string &storageLocation)
bool isCgiExtension(const std::string &ext) const
Checks if a given file extension should be handled by CGI.
LocationConf & operator=(const LocationConf &other)
std::string _storageLocation
AllowedMethods _allowedMethods