...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Called once for each complete field in the HTTP header.
void on_field_impl( field name, string_view name_string, string_view value, error_code& ec);
This virtual function is invoked for each field that is received while parsing an HTTP message.
Name |
Description |
---|---|
|
The known field enum value. If the name of the field is not recognized,
this value will be |
|
The exact name of the field as received from the input, represented as a string. |
|
A string holding the value of the field. |
|
An output parameter which the function may set to indicate an error. The error will be clear before this function is invoked. |