Learn R Programming

httr (version 1.2.1)

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

Run this code
# NOT RUN {
r <- GET("http://httpbin.org/get")
headers(r)
# }

Run the code above in your browser using DataLab