Extract the headers from a response

headers(x)

Arguments

x

A request object

See also

add_headers() to send additional headers in a request

Examples

r <- GET("http://httpbin.org/get") headers(r)
#> $connection #> [1] "keep-alive" #> #> $server #> [1] "gunicorn/19.9.0" #> #> $date #> [1] "Mon, 17 Dec 2018 20:44:44 GMT" #> #> $`content-type` #> [1] "application/json" #> #> $`content-length` #> [1] "358" #> #> $`access-control-allow-origin` #> [1] "*" #> #> $`access-control-allow-credentials` #> [1] "true" #> #> $via #> [1] "1.1 vegur" #> #> attr(,"class") #> [1] "insensitive" "list"