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

Returns the payload size of the body.

Synopsis
static
std::uint64_t
size(
    value_type);
Description

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


PrevUpHomeNext