Per-request overrides of the client's policy defaults. Passing NULL resets
to the package default rather than the client's value (§31.9) — which is
the only way to escape a client default at the request level.
Arguments
- req
A
zu_request.- total
Total seconds for the request, redirects included, as a single number. DNS resolution is not bounded by it (nor by Ctrl-C); see zuhttp_tls.
- max
Maximum redirects to follow.
0returns the 3xx response itself.- check
Raise a condition for 4xx and 5xx (§31.14).
Examples
zu_req_timeout(zu_request("GET", "https://example.com"), total = 5)
#> <zu_request>
#> GET https://example.com
#> timeout: 5