mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-06-25 09:33:36 +02:00
「🏗️」 wip: cgi should be able to be implemented
This commit is contained in:
@ -6,26 +6,35 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/05/13 18:14:45 by adjoly #+# #+# */
|
||||
/* Updated: 2025/05/23 12:51:22 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/05/24 11:15:25 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "server/AResource.hpp"
|
||||
#include <log.hpp>
|
||||
|
||||
namespace webserv {
|
||||
namespace server {
|
||||
|
||||
class CgiIn: public AClientResource {
|
||||
class CgiIn : public AClientResource {
|
||||
public:
|
||||
CgiIn(int id) { _res_id = id; }
|
||||
~CgiIn(void) {}
|
||||
CgiIn(std::string body, int id) : _body(body) {
|
||||
log("➕", "CgiIn", "constructor called");
|
||||
_fd->fd = id;
|
||||
_fd->events = POLLOUT;
|
||||
}
|
||||
~CgiIn(void) { log("➖", "CgiIn", "destructor called"); }
|
||||
|
||||
void send(void) {
|
||||
// TODO: send the body
|
||||
}
|
||||
clientResType type(void) const { return CGI_IN; }
|
||||
|
||||
protected:
|
||||
private:
|
||||
std::string _body;
|
||||
};
|
||||
|
||||
} // namespace server
|
||||
|
Reference in New Issue
Block a user