Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

timeout

Set maximum request time.


Description

Set maximum request time.

Usage

timeout(seconds)

Arguments

seconds

number of seconds to wait for a response until giving up. Can not be less than 1 ms.

Details

This timeout is passed on to curl::handle_setopt(). See there and curl::curl_options() for more details.

See Also

Examples

## Not run: 
GET("http://httpbin.org/delay/3", timeout(1))
GET("http://httpbin.org/delay/1", timeout(2))

## End(Not run)

httr

Tools for Working with URLs and HTTP

v1.4.2
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.