powered by
Checks that internet resource works properly and fail gracefully when not.
gracefully_fail(call, timeout = 10, ...)
The response object or NULL when the server does not respond properly.
url of the resource.
set maximum request time in seconds.
further named parameters, such as query, headers, etc.
thefactmachine
To be used as an ancillary function.
https://gist.github.com/thefactmachine/18279b7796c0836d9188
gracefully_fail("http://httpbin.org/delay/2")
Run the code above in your browser using DataLab