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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
http::basic_parser::on_request_impl

Called after receiving the request-line.

Synopsis
void
on_request_impl(
    verb method,
    string_view method_str,
    string_view target,
    int version,
    error_code& ec);
Description

This virtual function is invoked after receiving a request-line when parsing HTTP requests. It can only be called when isRequest == true.

Parameters

Name

Description

method

The verb enumeration. If the method string is not one of the predefined strings, this value will be verb::unknown.

method_str

The unmodified string representing the verb.

target

The request-target.

version

The HTTP-version. This will be 10 for HTTP/1.0, and 11 for HTTP/1.1.

ec

An output parameter which the function may set to indicate an error. The error will be clear before this function is invoked.


PrevUpHomeNext