timeout: Set maximum request time.

Description Usage Arguments See Also Examples

View source: R/timeout.r

Description

Set maximum request time.

Usage

1
timeout(seconds)

Arguments

seconds

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

See Also

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

Examples

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

## End(Not run)

httr documentation built on Aug. 20, 2017, 5:06 p.m.