Learn R Programming

scenes (version 0.1.0)

.req_has_cookie_impl: Check a Request for a Cookie

Description

Report whether a request includes a HTTP_COOKIE object with a specified cookie_name, and optionally that the cookie passes

Usage

.req_has_cookie_impl(request, cookie_name, validation_fn, ...)

Value

A length-1 logical vector.

Arguments

request

A shiny request object.

cookie_name

The cookie that must be present, as a length-1 character vector.

validation_fn

A function that takes the value of the cookie as the first parameter, and returns TRUE if the cookie is valid, and FALSE otherwise.

...

Additional parameters passed on to validation_fn.