default_cookie_parser | R Documentation |
Parses the cookie string.
default_cookie_parser(req)
req |
A Request. |
A list
of key value pairs or cookie values.
if (interactive()) {
library(ambiorix)
#' Handle GET at '/greet'
#'
#' @export
say_hello <- function(req, res) {
cookies <- default_cookie_parser(req)
print(cookies)
res$send("hello there!")
}
app <- Ambiorix$new()
app$get("/greet", say_hello)
app$start()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.