boost::burl::response::content_length

Return the payload size, if known.

Synopsis

Declared in <boost/burl/response.hpp>

std::optional<uint64_t>
content_length() const noexcept;

Description

Returns the value stated by the Content‐Length field. Otherwise returns an empty optional, such as for chunked messages. A response to a HEAD request states the size of the representation even though no payload follows.

Return Value

the payload size, if known.

Created with MrDocs