Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

headers

Extract the headers from a response


Description

Extract the headers from a response

Usage

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)

httr

Tools for Working with URLs and HTTP

v1.4.2
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.