Skip to contents

TRUE when §33.1's second condition holds: the method is idempotent, or the caller declared it replay-safe, or the request carries an Idempotency-Key.

Usage

zu_req_replay_safe(req)

Arguments

req

A zu_request.

Value

A logical.

See also

zu_body_rewindable(), which is §33.1's third condition.

Examples

zu_req_replay_safe(zu_request("GET", "https://x.test/"))
#> [1] TRUE
zu_req_replay_safe(zu_request("POST", "https://x.test/"))
#> [1] FALSE