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 a snapshot of the master branch, built from commit c77463be26.
PrevUpHomeNext
http::header::method (2 of 2 overloads)

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