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::basic_string_body::size

Returns the payload size of the body.

Synopsis
static
std::uint64_t
size(
    value_type const& body);
Description

When this body is used with message::prepare_payload, the Content-Length will be set to the payload size, and any chunked Transfer-Encoding will be removed.


PrevUpHomeNext