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] "meinheld/0.6.1" #> #> $date #> [1] "Wed, 16 Aug 2017 14:12:22 GMT" #> #> $`content-type` #> [1] "application/json" #> #> $`access-control-allow-origin` #> [1] "*" #> #> $`access-control-allow-credentials` #> [1] "true" #> #> $`x-powered-by` #> [1] "Flask" #> #> $`x-processed-time` #> [1] "0.00076699256897" #> #> $`content-length` #> [1] "354" #> #> $via #> [1] "1.1 vegur" #> #> attr(,"class") #> [1] "insensitive" "list"