ゴミ箱
|
#include <chunk_encode.hpp>
Classes | |
class | const_iterator |
Public Types | |
using | value_type = std::pair< string_view, string_view > |
Public Member Functions | |
basic_chunk_extensions ()=default | |
Constructor. More... | |
basic_chunk_extensions (basic_chunk_extensions &&)=default | |
Constructor. More... | |
basic_chunk_extensions (basic_chunk_extensions const &)=default | |
Constructor. More... | |
basic_chunk_extensions (Allocator const &allocator) | |
void | clear () |
void | parse (string_view s, error_code &ec) |
void | insert (string_view name) |
void | insert (string_view name, string_view value) |
string_view | str () const |
Return the serialized representation of the chunk extension. More... | |
const_iterator | begin () const |
const_iterator | end () const |
A set of chunk extensions
This container stores a set of chunk extensions suited for use with chunk_header and chunk_body. The container may be iterated to access the extensions in their structured form.
Meets the requirements of ChunkExtensions
using boost::beast::http::basic_chunk_extensions< Allocator >::value_type = std::pair<string_view, string_view> |
The type of value when iterating.
The first element of the pair is the name, and the second element is the value which may be empty. The value is stored in its raw representation, without quotes or escapes.
|
default |
Constructor.
|
default |
Constructor.
|
default |
Constructor.
|
inlineexplicit |
Constructor
allocator | The allocator to use for storing the serialized extension |
|
inline |
|
inline |
Clear the chunk extensions
This preserves the capacity of the internal string used to hold the serialized representation.
|
inline |
void boost::beast::http::basic_chunk_extensions< Allocator >::insert | ( | string_view | name | ) |
Insert an extension name with an empty value
name | The name of the extension |
void boost::beast::http::basic_chunk_extensions< Allocator >::insert | ( | string_view | name, |
string_view | value | ||
) |
Insert an extension value
name | The name of the extension |
value | The value to insert. Depending on the contents, the serialized extension may use a quoted string. |
void boost::beast::http::basic_chunk_extensions< Allocator >::parse | ( | string_view | s, |
error_code & | ec | ||
) |
Parse a set of chunk extensions
Any previous extensions will be cleared
|
inline |
Return the serialized representation of the chunk extension.