Access cookies in a response.

cookies(x)

Arguments

x

A response.

See also

set_cookies() to send cookies in request.

Examples

r <- GET("http://httpbin.org/cookies/set", query = list(a = 1, b = 2)) cookies(r)
#> domain flag path secure expiration name value #> 1 httpbin.org FALSE / FALSE <NA> a 1 #> 2 httpbin.org FALSE / FALSE <NA> b 2