Skip to contents

Add headers

Usage

zu_headers(req, ...)

Arguments

req

A zu_request.

...

Named header values, one value per name. A value of NA removes a header inherited from the client (§31.9); a same-name value replaces it, case-insensitively. A vector of several values, or a name given twice, is an error: join a list-valued field yourself.

Value

A zu_request.

Examples

zu_headers(zu_request("GET", "https://example.com"), Accept = "text/plain")
#> <zu_request>
#> GET https://example.com
#> Accept: text/plain