Fixed the includes

This commit is contained in:
Me
2022-07-31 16:53:22 +02:00
parent d4a001e8ba
commit 19f7493aac
8 changed files with 36 additions and 41 deletions

View File

@@ -13,26 +13,19 @@
#ifndef CONFIGPARSER_HPP
# define CONFIGPARSER_HPP
# include "Webserv.hpp" // easier to just do this?
# include "ServerConfig.hpp"
// add includes properly
# include "LocationConfig.hpp"
# include "MethodType.hpp"
# include "utils.hpp"
// This is gonna be temporary cuz i don't konw if i like it
#define MAX_REQUEST_SIZE 2048
#define MAX_URI_SIZE 64
#define BSIZE 1024
/*
// this can't be here...
enum MethodType
{
GET,
POST,
DELETE,
INVALID,
};
*/
# include <map>
# include <vector>
# include <exception> // exception, what
# include <stdexcept> // runtime_error, invalid_argument
# include <string> // string
# include <cstdlib> // atoi (athough it's already cover by <string>)
# include <iostream> // cout, cin
# include <fstream> // ifstream
class ConfigParser {
@@ -84,7 +77,6 @@ private:
// why static? it's an enum...
static MethodType _str_to_method_type(std::string str);
// just for testing purposes
};