headers function

Extract the headers from a response

Extract the headers from a response

headers(x)

Arguments

  • x: A request object

Examples

## Not run: r <- GET("http://httpbin.org/get") headers(r) ## End(Not run)

See Also

add_headers() to send additional headers in a request

  • Maintainer: Hadley Wickham
  • License: MIT + file LICENSE
  • Last published: 2023-08-15