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 an older version of Boost and was released in 2024. The current version is 1.89.0.
(Inherited from http::basic_parser)
Set the limit on the payload body.
void body_limit( boost::optional< std::uint64_t > v);
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:
error::body_limit is returned immediately
after the header is parsed.
error::body_limit
error::body_limit.
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.
|
Name |
Description |
|---|---|
|
|
An optional integral value representing the body limit. If this
is equal to |