Skip to content

Access cookies in a response.

Usage

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        Inf    a     1
#> 2 httpbin.org FALSE    /  FALSE        Inf    b     2