Set maximum request time.

timeout(seconds)

Arguments

seconds

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

See also

Examples

# NOT RUN {
GET("http://httpbin.org/delay/3", timeout(1))
GET("http://httpbin.org/delay/1", timeout(2))
# }