microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.96k stars 1.65k forks source link

How to get client config timeout http_client_config::set_timeout() in Server side #1677

Open laoshanxi opened 2 years ago

laoshanxi commented 2 years ago

Client could set http timeout, how to get this value in server side?

m_listener->support(methods::GET, std::bind(&RestHandler::handle_get, this, std::placeholders::_1));

in the function RestHandler::handle_get(...), is that possible to get the timeout seconds?

Regards