Identifies a function as a cookie parser (see example).
Usage
as_cookie_parser(fn)
Value
Object of class "cookieParser".
Arguments
fn
A function that accepts a single argument,
req the Request and returns the parsed cookie string,
generally a list.
Note that the original cookie string is available on the
Request at the HTTP_COOKIE field, get it with:
req$HTTP_COOKIE