RESTinio
Public Member Functions | Public Attributes | List of all members
restinio::impl::http_parser_ctx_t Struct Reference

Parsing result context for using in parser callbacks. More...

#include <connection.hpp>

Public Member Functions

void reset ()
 Prepare context to handle new request. More...
 

Public Attributes

bool m_message_complete { false }
 Flag: is http message parsed completely. More...
 
http_request_header_t m_header
 Request data. More...
 
std::string m_body
 
std::string m_current_field_name
 Parser context temp values and flags. More...
 
bool m_last_was_value { true }
 

Detailed Description

Parsing result context for using in parser callbacks.

All data is used as temps, and is usable only after parsing completes new requests then it is moved out.

Definition at line 46 of file connection.hpp.

Member Function Documentation

◆ reset()

void restinio::impl::http_parser_ctx_t::reset ( )
inline

Prepare context to handle new request.

Definition at line 65 of file connection.hpp.

Member Data Documentation

◆ m_body

std::string restinio::impl::http_parser_ctx_t::m_body

Definition at line 51 of file connection.hpp.

◆ m_current_field_name

std::string restinio::impl::http_parser_ctx_t::m_current_field_name

Parser context temp values and flags.

Definition at line 56 of file connection.hpp.

◆ m_header

http_request_header_t restinio::impl::http_parser_ctx_t::m_header

Request data.

Definition at line 50 of file connection.hpp.

◆ m_last_was_value

bool restinio::impl::http_parser_ctx_t::m_last_was_value { true }

Definition at line 57 of file connection.hpp.

◆ m_message_complete

bool restinio::impl::http_parser_ctx_t::m_message_complete { false }

Flag: is http message parsed completely.

Definition at line 61 of file connection.hpp.


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