...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Called after receiving the status-line.
void on_response_impl( int code, string_view reason, int version, error_code& ec);
This virtual function is invoked after receiving a status-line when parsing
HTTP responses. It can only be called when isRequest
== false
.
Name |
Description |
---|---|
|
The numeric status code. |
|
The reason-phrase. Note that this value is now obsolete, and only provided for historical or diagnostic purposes. |
|
The HTTP-version. This will be 10 for HTTP/1.0, and 11 for HTTP/1.1. |
|
An output parameter which the function may set to indicate an error. The error will be clear before this function is invoked. |