mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 21:38:46 +02:00
「🏗️」 wip: Started cgi handling but no clue what i am doing
This commit is contained in:
@ -6,31 +6,36 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/24 14:17:34 by adjoly #+# #+# */
|
||||
/* Updated: 2025/04/23 17:27:45 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/04/24 14:24:09 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "requests/HttpIMessage.hpp"
|
||||
#include "requests/HttpRequest.hpp"
|
||||
#include <config/default.hpp>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace webserv {
|
||||
|
||||
|
||||
class Cgi {
|
||||
public:
|
||||
Cgi(http::IMessage &);
|
||||
~Cgi(void);
|
||||
public:
|
||||
Cgi(http::IRequest *, config::Server *);
|
||||
~Cgi(void);
|
||||
|
||||
void initEnvp(void);
|
||||
|
||||
protected:
|
||||
private:
|
||||
std::map<std::string, std::string> _envp;
|
||||
std::string getEnv(std::string &);
|
||||
void setEnv(std::string &, std::string);
|
||||
|
||||
void process(void);
|
||||
|
||||
std::string _request;
|
||||
};
|
||||
protected:
|
||||
private:
|
||||
void _initEnvp(void);
|
||||
|
||||
std::map<std::string, std::string> _envp;
|
||||
config::Server *_conf;
|
||||
http::IMessage *_request;
|
||||
};
|
||||
}; // namespace webserv
|
||||
|
Reference in New Issue
Block a user