/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Cgi.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/24 14:17:34 by adjoly #+# #+# */ /* Updated: 2025/04/30 09:36:02 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