mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 20:48:46 +02:00
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Cgi.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/03/24 14:17:34 by adjoly #+# #+# */
|
|
/* Updated: 2025/04/30 09:36:02 by adjoly ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#pragma once
|
|
|
|
#include <requests/ARequest.hpp>
|
|
#include <config/default.hpp>
|
|
#include <map>
|
|
#include <string>
|
|
|
|
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<std::string, std::string> _envp;
|
|
config::Server *_conf;
|
|
http::IMessage *_request;
|
|
};
|
|
}; // namespace webserv
|