Learn R Programming

httr (version 1.4.2)

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