resp_retry_after: Extract wait time from a response
Description
Computes how many seconds you should wait before retrying a request by
inspecting the Retry-After header. It parses both forms (absolute and
relative) and returns the number of seconds to wait. If the heading is not
found, it will return NA.
Usage
resp_retry_after(resp)
Value
Scalar double giving the number of seconds to wait before retrying
a request.
Arguments
resp
An HTTP response object, as created by req_perform().