Websocket timeout option APIs

fix #2449
This commit is contained in:
alandefreitas
2022-06-15 19:53:26 -03:00
committed by Klemens Morgenstern
parent 5866e50438
commit 5ccb33b71c

View File

@ -344,21 +344,31 @@ public:
//--------------------------------------------------------------------------
#if BOOST_BEAST_DOXYGEN
/// Get the option value
template<class Option>
void
get_option(Option& opt);
/// Set the option value
template<class Option>
void
set_option(Option opt);
#else
void set_option(decorator opt);
void get_option(timeout& opt);
void set_option(timeout const& opt);
#endif
/** Set the timeout option
@throws system_error on failure to reset the
timer.
*/
void
set_option(timeout const& opt);
/// Get the timeout option
void
get_option(timeout& opt);
/** Set the permessage-deflate extension options
@throws invalid_argument if `deflateSupported == false`, and either