extract_cookies {cookies} | R Documentation |
Extract all cookies from a shiny request
Description
The shiny request object includes any cookies that are available to the app. This function extracts those cookies as a named list.
Usage
extract_cookies(request)
Arguments
request |
A shiny request object. |
Value
All cookies in the request, as a list.
Examples
req <- list(HTTP_COOKIE = "cookie1=expected_value; cookie2=1; cookie3=2")
extract_cookies(req)
extract_cookies(list())
extract_cookies(NULL)
[Package cookies version 0.2.3 Index]