LeftHookRoll
An HTTP/1.0 compliant web server, as specified by RFC1945
Loading...
Searching...
No Matches
Response.hpp File Reference

Formulates the HTTP response and manages non-blocking data transmission. More...

#include <string>
#include <sys/types.h>
#include <map>
#include <vector>
#include "DataStore.hpp"
#include "ServerConf.hpp"
#include "Request.hpp"
#include "CGIManager.hpp"
Include dependency graph for Response.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Response
 

Enumerations

enum  ResponseState { SENDING_RES_HEAD , SENDING_BODY_STATIC , SENDING_BODY_CHUNKED }
 Tracks the progress of sending the response to the client. More...
 
enum  BuildPhase { BUILD_IDLE , BUILD_POST_WRITING , BUILD_CGI_RUNNING , BUILD_DONE }
 Tracks the incremental construction of the response body. exclusivly for POST. More...
 

Detailed Description

Formulates the HTTP response and manages non-blocking data transmission.

  • This class decides the course of action (uploading/creating a file,CGI,static message) and manages the state of the outgoing data stream.

Definition in file Response.hpp.

Enumeration Type Documentation

◆ ResponseState

Tracks the progress of sending the response to the client.

Enumerator
SENDING_RES_HEAD 
SENDING_BODY_STATIC 
SENDING_BODY_CHUNKED 

Definition at line 23 of file Response.hpp.

◆ BuildPhase

enum BuildPhase

Tracks the incremental construction of the response body. exclusivly for POST.

Enumerator
BUILD_IDLE 
BUILD_POST_WRITING 
BUILD_CGI_RUNNING 
BUILD_DONE 

Definition at line 35 of file Response.hpp.