50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* LocationConfig.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: me <erlazo@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/07/23 16:08:00 by me #+# #+# */
|
|
/* Updated: 2022/07/25 20:09:48 by me ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef LOCATIONCONFIG_HPP
|
|
# define LOCATIONCONFIG_HPP
|
|
|
|
# include "MethodType.hpp"
|
|
|
|
# include <map>
|
|
# include <vector>
|
|
# include <string>
|
|
|
|
|
|
// again, struct instead?
|
|
class LocationConfig
|
|
{
|
|
public:
|
|
// canonic stuff?
|
|
|
|
|
|
int client_body_limit;
|
|
std::string path;
|
|
std::string root;
|
|
std::vector<std::string> index;
|
|
std::vector<MethodType> allow_methods;
|
|
std::map<std::string, std::string> cgi_info;
|
|
|
|
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|