Code
as_headers(1)
Condition
Error:
! `headers` must be a list, character vector, or raw.
Code
as_headers(c("X:1", "Y: 2", "Z:"))
Message
<httr2_headers>
Output
X: 1
Y: 2
Z:
Code
as_headers(list())
Message
<httr2_headers>
Code
new_headers(1)
Condition
Error:
! `x` must be a list.
Code
new_headers(list(1))
Condition
Error:
! All elements of `x` must be named.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.