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::parser::body_limit

(Inherited from http::basic_parser)

Set the limit on the payload body.

Synopsis
void
body_limit(
    std::uint64_t v);
Description

This function sets the maximum allowed size of the payload body, before any encodings except chunked have been removed. Depending on the message semantics, one of these cases will apply:

Setting the limit after any body octets have been parsed results in undefined behavior.

The default limit is 1MB for requests and 8MB for responses.

Parameters

Name

Description

v

The payload body limit to set


PrevUpHomeNext