Urdl C++ Library

PrevUpHomeNext
read_stream::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.

Example

urdl::read_stream stream(io_service);
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