Urdl C++ Library

PrevUpHomeNext
istream::set_options

Sets options to control the behaviour of the stream.

void set_options(
    const option_set & options);

Parameters

options

The options to be set on the stream. The options in the set are added on top of any options already set on the stream.

Remarks

Performs rdbuf()->set_options(options).

Example

urdl::istream is;
urdl::option_set options;
options.set_option(urdl::http::max_redirects(1));
options.set_option(urdl::ssl::verify_peer(false));
stream.set_options(options);

PrevUpHomeNext