/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Location.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bcausseq +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2026/09/25 09:10:40 by bcausseq #+# #+# */ /* Updated: 2026/09/25 10:04:23 by bcausseq ### ########.fr */ /* */ /* ************************************************************************** */ #include "Location.hpp" void Location::set_root(std::string& root) { _root = root; } void Location::set_redir(bool redir, unsigned short redir_code, std::string redir_path) { _redir = redir; _redir_code = redir_code; _redir_path = redir_path; } void Location::set_cgi(std::string& cgi, std::string& pass) { _cgi_path[cgi] = pass; } std::vector& Location::get_index() { return (_index); } void Location::set_path(std::string& path) { _path = path; } std::vector& Location::get_methods() { return (_methods); } const std::vector& Location::get_methods() const { return (_methods); } void Location::set_autoindex(bool autoindex) { _auto_index = autoindex; } void Location::set_cookie(bool cookie) { _cookies = cookie; } const std::string& Location::get_path() const { return (_path); } const std::string& Location::get_root() const { return (_root); }