headers: Extract the headers from a response

View source: R/headers.r

headersR Documentation

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

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

## End(Not run)

r-lib/httr documentation built on Nov. 5, 2023, 7:26 a.m.