Urdl C++ Library

PrevUpHomeNext
read_stream::get_options

Gets the values of all options set on the stream.

option_set get_options() const;

Return Value

An option set containing all options from the stream.

Example

urdl::read_stream stream(io_service);
...
urdl::option_set options(stream.get_options());
urdl::http::max_redirects option
  = options.get_option<urdl::http::max_redirects>();
std::size_t value = option.value();

PrevUpHomeNext