RESTinio
|
An information about chunks and trailing fields in the incoming request. More...
#include <chunked_input_info.hpp>
Public Member Functions | |
chunked_input_info_t ()=default | |
Default constructor. Makes empty object. More... | |
chunked_input_info_t (impl::chunked_input_info_block_t info) | |
Initializing constructor. More... | |
RESTINIO_NODISCARD std::size_t | chunk_count () const noexcept |
Get the count of chunks. More... | |
RESTINIO_NODISCARD const chunk_info_t & | chunk_at_nochecked (std::size_t index) const noexcept |
Get reference to the description of a chunk by index. More... | |
RESTINIO_NODISCARD const chunk_info_t & | chunk_at (std::size_t index) const |
Get reference to the description of a chunk by index. More... | |
RESTINIO_NODISCARD const auto & | chunks () const noexcept |
Get access to the container with description of chunks. More... | |
RESTINIO_NODISCARD const http_header_fields_t & | trailing_fields () const noexcept |
Get access to the container with trailing fields. More... | |
Private Attributes | |
impl::chunked_input_info_block_t | m_info |
Actual data. More... | |
An information about chunks and trailing fields in the incoming request.
This information is collected if chunked encoding is used in the incoming request.
Definition at line 142 of file chunked_input_info.hpp.
|
default |
Default constructor. Makes empty object.
|
inline |
Initializing constructor.
Definition at line 156 of file chunked_input_info.hpp.
|
inline |
Get reference to the description of a chunk by index.
std::exception | if index is invalid. |
Definition at line 188 of file chunked_input_info.hpp.
|
inlinenoexcept |
Get reference to the description of a chunk by index.
Definition at line 177 of file chunked_input_info.hpp.
|
inlinenoexcept |
Get the count of chunks.
0 | if there is no chunks in the incoming request. |
Definition at line 167 of file chunked_input_info.hpp.
|
inlinenoexcept |
Get access to the container with description of chunks.
Definition at line 202 of file chunked_input_info.hpp.
|
inlinenoexcept |
Get access to the container with trailing fields.
Definition at line 215 of file chunked_input_info.hpp.
|
private |
Actual data.
Definition at line 145 of file chunked_input_info.hpp.