Code
route$print()
Message
A route with 0 handlers
Code
route$print()
Message
A route with 1 handler
get:
* /test
Code
route$print()
Message
A route with 1 handler
get:
* /test
Code
route$print()
Message
A route with 0 handlers
Code
route$remove_handler("get", "/test")
Condition
Warning:
No handler assigned to get and /test
Code
route$add_handler("get", "/test", function(request) {
FALSE
})
Condition
Error:
! `handler` must be a function with the following arguments: `...`
Code
route$dispatch(rook)
Condition
Error in `route$dispatch()`:
! `request` must be a <Request> object, not an environment.
Code
route$dispatch(req)
Condition
Error:
! not working
Code
route$dispatch(req)
Condition
Error in `route$dispatch()`:
! `continue` must be `TRUE` or `FALSE`, not `NULL`.
Code
r$dispatch(req)
Output
$key
[1] "a_Test"
[1] TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.