Method Protocols.HTTP.Promise.set_timeout()
- Method set_timeout
voidset_timeout(intt)
voidset_maxtime(intt)- Description
set_timeout() sets the default timeout for connecting and data fetching. The watchdog will be reset each time data is fetched.
set_maxtime() sets the timeout for the entire operation. If this is set to 30 seconds for instance, the request will be aborted after 30 seconds event if data is still being received. By default this is indefinitley.
tis the timeout in seconds.- See also