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::message::method (2 of 2 overloads)

(Inherited from http::header)

Set the request-method.

Synopsis
void
method(
    verb v);
Description

This function will set the method for requests to a known verb.

Parameters

Name

Description

v

The request method verb to set. This may not be verb::unknown.

Exceptions

Type

Thrown On

std::invalid_argument

when v == verb::unknown.

Remarks

This function is only available when isRequest == true.


PrevUpHomeNext