Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
http::parser::merge_all_trailers (2 of 2 overloads)

Set whether the parser is allowed to merge all trailer fields.

Synopsis
void
merge_all_trailers(
    bool v);
Description

By default, the parser merges only a set of well-known trailer fields. When this option is enabled, the parser merges all trailer fields listed in the Trailer header field in the header section of the message.

Remarks

Enabling this option can introduce security risks if untrusted input is processed and the Trailer header field in the header section of the message is not properly validated.

The default value is false, which merges only the following well-known trailer fields:

Parameters

Name

Description

v

true to merge all trailer fields, or false to merge only the well-known ones.


PrevUpHomeNext