NAWA 0.9
Web Application Framework for C++
nawa::FlushCallbackContainer Struct Reference

#include </github/workspace/internal/nawa/connection/FlushCallbackContainer.h>

Public Member Functions

std::string getStatusString () const
 
std::string getFullHttp () const
 

Public Attributes

unsigned int status
 
std::unordered_multimap< std::string, std::string > headers
 
std::string body
 
bool flushedBefore
 

Detailed Description

Internal container passed to the FlushCallbackFunction.

Definition at line 35 of file FlushCallbackContainer.h.

Member Function Documentation

◆ getStatusString()

std::string FlushCallbackContainer::getStatusString ( ) const

Get a textual representation of the HTTP status (such as "200 OK"). Implemented in Connection.cpp.

Returns
Textual representation of the HTTP status.

Definition at line 525 of file Connection.cpp.

◆ getFullHttp()

std::string FlushCallbackContainer::getFullHttp ( ) const

Generate a full raw HTTP source, including headers when flushing for the first time (but without HTTP status). Implemented in Connection.cpp.

Returns
The HTTP source.

Definition at line 534 of file Connection.cpp.

Member Data Documentation

◆ status

unsigned int nawa::FlushCallbackContainer::status

The HTTP response status as an unsigned integer.

Definition at line 36 of file FlushCallbackContainer.h.

◆ headers

std::unordered_multimap<std::string, std::string> nawa::FlushCallbackContainer::headers

The multimap of response headers.

Definition at line 37 of file FlushCallbackContainer.h.

◆ body

std::string nawa::FlushCallbackContainer::body

The response body.

Definition at line 38 of file FlushCallbackContainer.h.

◆ flushedBefore

bool nawa::FlushCallbackContainer::flushedBefore

True if the response has been flushed before, false otherwise.

Definition at line 39 of file FlushCallbackContainer.h.


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