Skip to contents

§28.2 makes rewindability a property of the body rather than a convention, so the retry layer (§33) and the redirect layer (§19.1) can refuse rather than truncate.

Usage

zu_body_rewindable(req)

Arguments

req

A zu_request.

Value

A logical. TRUE for an absent body and for any in-memory body; FALSE for a body from zu_body_stream(), which a function produces once and cannot produce again.

Examples

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