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 a snapshot of the develop branch, built from commit 0f95d64ff2.
PrevUpHomeNext
http::message::payload_size

Returns the payload size of the body in octets if possible.

Synopsis
boost::optional< std::uint64_t >
payload_size() const;
Description

This function invokes the Body algorithm to measure the number of octets in the serialized body container. If there is no body, this will return zero. Otherwise, if the body exists but is not known ahead of time, boost::none is returned (usually indicating that a chunked Transfer-Encoding will be used).

Remarks

The value of the Content-Length field in the message is not inspected.


PrevUpHomeNext