...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 request-line.
void on_request_impl( verb method, string_view method_str, string_view target, int version, error_code& ec);
This virtual function is invoked after receiving a request-line when parsing
HTTP requests. It can only be called when isRequest
== true
.
Name |
Description |
---|---|
|
The verb enumeration. If the method string is not one of the
predefined strings, this value will be |
|
The unmodified string representing the verb. |
|
The request-target. |
|
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. |