Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
http::chunk_body::chunk_body (2 of 4 overloads)

Constructor.

Synopsis
chunk_body(
    ConstBufferSequence const& buffers,
    string_view extensions);
Description

This constructs buffers representing a complete chunk with the passed chunk extensions and having the size and contents of the specified buffer sequence.

Parameters

Name

Description

buffers

A buffer sequence representing the chunk body. Although the buffers object may be copied as necessary, ownership of the underlying memory blocks is retained by the caller, which must guarantee that they remain valid while this object is in use.

extensions

The chunk extensions string. This string must be formatted correctly as per rfc7230, using this BNF syntax:

chunk-ext       = *( ";" chunk-ext-name [ "=" chunk-ext-val ] )
chunk-ext-name  = token
chunk-ext-val   = token / quoted-string

The data pointed to by this string view must remain valid for the lifetime of any operations performed on the object.

See Also

https://tools.ietf.org/html/rfc7230#section-4.1.1


PrevUpHomeNext