/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Cgi.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gadelbes +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/24 13:46:34 by gadelbes #+# #+# */ /* Updated: 2025/05/06 19:34:11 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once #include #include #include #include namespace webserv { class Cgi { public: Cgi(http::ARequest *, config::Server *); ~Cgi(void); std::string getEnv(std::string &); void setEnv(std::string &, std::string); void process(void); protected: private: void _initEnvp(void); std::map _envp; config::Server *_conf; http::IMessage *_request; }; }; // namespace webserv