Webserv
Loading...
Searching...
No Matches
network::CGIHandler Class Reference

#include <CGIHandler.hpp>

Inheritance diagram for network::CGIHandler:
network::IEventHandler

Public Member Functions

 CGIHandler (http::IResponseBody &body, ClientHandler &client, bool hasHeaderParsing)
void handleEvent (uint32_t events)
int getFd () const
Public Member Functions inherited from network::IEventHandler
virtual ~IEventHandler ()

Private Types

enum  State { READING_HEADERS , STREAMING_BODY , COMPLETE }

Private Member Functions

void handleRead ()

Private Attributes

http::IResponseBodybody_
ClientHandlerclient_
std::string headerBuffer_
State state_
int fd_

Additional Inherited Members

Protected Member Functions inherited from network::IEventHandler
 IEventHandler ()

Member Enumeration Documentation

◆ State

Enumerator
READING_HEADERS 
STREAMING_BODY 
COMPLETE 

Constructor & Destructor Documentation

◆ CGIHandler()

network::CGIHandler::CGIHandler ( http::IResponseBody & body,
ClientHandler & client,
bool hasHeaderParsing )

Member Function Documentation

◆ getFd()

int network::CGIHandler::getFd ( ) const
virtual

◆ handleEvent()

void network::CGIHandler::handleEvent ( uint32_t events)
virtual

◆ handleRead()

void network::CGIHandler::handleRead ( )
private

Member Data Documentation

◆ body_

http::IResponseBody& network::CGIHandler::body_
private

◆ client_

ClientHandler& network::CGIHandler::client_
private

◆ fd_

int network::CGIHandler::fd_
private

◆ headerBuffer_

std::string network::CGIHandler::headerBuffer_
private

◆ state_

State network::CGIHandler::state_
private

The documentation for this class was generated from the following files: