#pragma once #include "json/Parser.hpp" #include #include #include #include #include //FD_SET, FD_ISSET, FD_ZERO macros #include #include #include #include #include #include #include #include #include #include #include class Route { std::vector _location; std::vector _index; std::string _root; public: Route(std::string location, std::string root, std::string index); ~Route(); }; class Server { unsigned int _port; std::string _server_name; std::vector *_routes; public: Server(std::string name, std::string root, std::string return, JSONNode *listens, JSONNode *indexs, JSONNode *locations); ~Server(); }; class Env { public: std::vector *servers; int max_clients; }; void *ft_memset(void *b, int c, size_t len);