Urdl C++ Library

PrevUpHomeNext

http::request_method

Option to specify the HTTP request method.

class request_method

Member Functions

Name

Description

request_method

Constructs an object of class request_method.

value

Gets the value of the option.

Sets the value of the option.

Remarks

The default request method is "GET".

Example

To set the request method for an object of class urdl::istream:

urdl::istream is;
is.set_option(urdl::http::request_method("HEAD"));
is.open("http://www.boost.org");

To set the request method for an object of class urdl::read_stream:

urdl::read_stream stream;
stream.set_option(urdl::http::request_method("HEAD"));
stream.open("http://www.boost.org");

Requirements

Header: <urdl/http.hpp>

Namespace: urdl::http


PrevUpHomeNext