timeout

0th

Percentile

Set maximum request time.

Set maximum request time.

Usage
timeout(seconds)
Arguments
seconds
number of seconds to wait for a response until giving up.
See Also

Other config: accept_json, accept_xml, add_headers, authenticate, config, set_cookies, use_proxy, user_agent, verbose

Aliases
  • timeout
Examples
GET("http://httpbin.org/delay/3", timeout(1))
GET("http://httpbin.org/delay/1", timeout(2))
Documentation reproduced from package httr, version 0.1.1, License: MIT

Community examples

Looks like there are no examples yet.