![]() |
Home | Libraries | People | FAQ | More |
Constructor.
chunk_header( std::size_t size, string_view extensions);
This constructs a buffer sequence representing a chunked-body
size and terminating CRLF ("\r\n"
)
with provided chunk extensions.
Name |
Description |
---|---|
|
The size of the chunk body that follows. The value must be greater than zero. |
|
The chunk extensions string. This string must be formatted correctly as per rfc7230, using this BNF syntax: chunk-[link beast.ref.boost__beast__http__field `ext`] = *( ";" chunk-[link beast.ref.boost__beast__http__field `ext`]-name [ "=" chunk-[link beast.ref.boost__beast__http__field `ext`]-val ] ) chunk-[link beast.ref.boost__beast__http__field `ext`]-name = token chunk-[link beast.ref.boost__beast__http__field `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. |