req_get_headers | R Documentation |
Retrieve custom headers set on the request. Use req_dry_run()
to get all
headers, including those automatically generated by curl.
req_get_headers(req, redacted = c("drop", "redact", "reveal"))
req |
A httr2 request object. |
redacted |
What to do with redacted headers?
|
A named list.
req <- request("http://example.com")
req <- req_headers(req, a = 1L, b = 2L, .redact = "a")
req_get_headers(req, "drop")
req_get_headers(req, "redact")
req_get_headers(req, "reveal")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.