/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Client.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/14 14:14:39 by adjoly #+# #+# */ /* Updated: 2025/04/20 11:25:37 by mmoussou ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once #include "config/default.hpp" #include "default.hpp" #include "requests/default.hpp" #include #include namespace webserv { namespace server { class Client { public: Client(int, sockaddr_in, config::Server *); virtual ~Client(void); void answer(void); private: void _getRequest(std::string); int _fd; struct sockaddr_in _client_addr; http::IRequest *_request; http::Response *_response; config::Server *_conf; }; } // -namespace server } // -namespace webserv