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::header_limit

(Inherited from http::basic_parser)

Set a limit on the total size of the header.

Synopsis
void
header_limit(
    std::uint32_t v);
Description

This function sets the maximum allowed size of the header including all field name, value, and delimiter characters and also including the CRLF sequences in the serialized input. If the end of the header is not found within the limit of the header size, the error error::header_limit is returned by put.

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


PrevUpHomeNext