Fixed the includes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user