...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A chunk.
Defined in header <boost/beast/http/chunk_encode.hpp>
template< class ConstBufferSequence> class chunk_body
Name |
Description |
---|---|
Required for ConstBufferSequence |
|
Required for ConstBufferSequence |
Name |
Description |
---|---|
Required for ConstBufferSequence |
|
chunk_body [constructor] |
Constructor. |
Required for ConstBufferSequence |
This implements a ConstBufferSequence representing a chunk. The serialized format is as follows:
chunk = chunk-size [ chunk-ext ] CRLF chunk-data CRLF chunk-size = 1*HEXDIG chunk-ext = *( ";" chunk-ext-name [ "=" chunk-ext-val ] ) chunk-ext-name = token chunk-ext-val = token / quoted-string chunk-data = 1*OCTET ; a sequence of chunk-size octets
The chunk extension is optional. To use this class, pass an instance of it to a stream algorithm as the buffer sequence.