Urdl C++ Library

PrevUpHomeNext
read_stream::set_option

Sets an option to control the behaviour of the stream.

template<
    typename Option>
void set_option(
    const Option & option);

Parameters

option

The option to be set on the stream.

Remarks

Options are uniquely identified by type.

Example

urdl::read_stream stream(io_service);
stream.set_option(urdl::http::max_redirects(1));

PrevUpHomeNext