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

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

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:

  • Digest
  • Content-Digest
  • Repr-Digest
  • Signature
  • Signature-Input
  • Server-Timing
  • ETag
  • Link
  • Alt-Svc
Parameters

Name

Description

v

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


PrevUpHomeNext