RESTinio
|
Parsing result context for using in parser callbacks. More...
#include <connection.hpp>
Public Member Functions | |
http_parser_ctx_t (incoming_http_msg_limits_t limits) | |
The main constructor. | |
void | reset () |
Prepare context to handle new request. | |
chunked_input_info_unique_ptr_t | make_chunked_input_info_if_necessary () |
Creates an instance of chunked_input_info if there is an info about chunks in the body. | |
Public Attributes | |
bool | m_message_complete { false } |
Flag: is http message parsed completely. | |
std::size_t | m_total_field_count { 0u } |
Total number of parsed HTTP-fields. | |
const incoming_http_msg_limits_t | m_limits |
Limits for the incoming message. | |
http_request_header_t | m_header |
Request data. | |
std::string | m_body |
std::string | m_current_field_name |
Parser context temp values and flags. | |
std::size_t | m_last_value_total_size { 0u } |
bool | m_leading_headers_completed { false } |
chunked_input_info_block_t | m_chunked_info_block |
chunk_ext_params_unique_ptr_t | m_chunk_ext_params |
Chunk extnsion's params if any. | |
std::size_t | m_bytes_parsed |
How many bytes were parsed for current request. | |
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 48 of file connection.hpp.
|
inline |
|
inline |
Creates an instance of chunked_input_info if there is an info about chunks in the body.
Definition at line 138 of file connection.hpp.
|
inline |
Prepare context to handle new request.
Definition at line 119 of file connection.hpp.
std::string restinio::impl::http_parser_ctx_t::m_body |
Definition at line 53 of file connection.hpp.
std::size_t restinio::impl::http_parser_ctx_t::m_bytes_parsed |
How many bytes were parsed for current request.
Definition at line 83 of file connection.hpp.
chunk_ext_params_unique_ptr_t restinio::impl::http_parser_ctx_t::m_chunk_ext_params |
chunked_input_info_block_t restinio::impl::http_parser_ctx_t::m_chunked_info_block |
Definition at line 69 of file connection.hpp.
std::string restinio::impl::http_parser_ctx_t::m_current_field_name |
Parser context temp values and flags.
Definition at line 58 of file connection.hpp.
http_request_header_t restinio::impl::http_parser_ctx_t::m_header |
Request data.
Definition at line 52 of file connection.hpp.
std::size_t restinio::impl::http_parser_ctx_t::m_last_value_total_size { 0u } |
Definition at line 59 of file connection.hpp.
Definition at line 64 of file connection.hpp.
const incoming_http_msg_limits_t restinio::impl::http_parser_ctx_t::m_limits |
Flag: is http message parsed completely.
Definition at line 88 of file connection.hpp.
std::size_t restinio::impl::http_parser_ctx_t::m_total_field_count { 0u } |
Total number of parsed HTTP-fields.
This number includes the number of leading HTTP-fields and the number of trailing HTTP-fields (in the case of chunked encoding).
Definition at line 98 of file connection.hpp.