req_timeout | R Documentation |
An error will be thrown if the request does not complete in the time limit.
req_timeout(req, seconds)
req |
A httr2 request object. |
seconds |
Maximum number of seconds to wait |
A modified HTTP request.
# Give up after at most 10 seconds
request("http://example.com") |> req_timeout(10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.