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

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 http::header_limit is returned by http::basic_parser::put.

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


PrevUpHomeNext