HTTP module

Parser::MessageScratch

The start line and headers of the message being parsed, applied to the request or response once its headers are complete

MessageScratch

#include <icy/http/parser.h>

struct MessageScratch

Defined in src/http/include/icy/http/parser.h:142

The start line and headers of the message being parsed, applied to the request or response once its headers are complete.

Public Attributes

ReturnNameDescription
std::stringversion
std::stringmethod
std::stringuri
std::stringreason
http::StatusCodestatus
std::vector< std::pair< std::string, std::string > >headers

version

std::string version

Defined in src/http/include/icy/http/parser.h:144


method

std::string method

Defined in src/http/include/icy/http/parser.h:145


uri

std::string uri

Defined in src/http/include/icy/http/parser.h:146


reason

std::string reason

Defined in src/http/include/icy/http/parser.h:147


status

http::StatusCode status = http::StatusCode::OK

Type: http::StatusCode

Defined in src/http/include/icy/http/parser.h:148


headers

std::vector< std::pair< std::string, std::string > > headers

Defined in src/http/include/icy/http/parser.h:149

Public Methods

ReturnNameDescription
voidreset inline

reset

inline

inline void reset()

Defined in src/http/include/icy/http/parser.h:151