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_header::chunk_header (2 of 5 overloads)

Constructor.

Synopsis
chunk_header(
    std::size_t size,
    string_view extensions);
Description

This constructs a buffer sequence representing a chunked-body size and terminating CRLF ("\r\n") with provided chunk extensions.

Parameters

Name

Description

size

The size of the chunk body that follows. The value must be greater than zero.

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