powered by
Create a scene_action specifying the HTTP method that must be used (or not used).
scene_action
req_uses_method(method, negate = FALSE)req_uses_get(negate = FALSE)req_uses_post(negate = FALSE)
req_uses_get(negate = FALSE)
req_uses_post(negate = FALSE)
A scene_action object, to be used in set_scene().
set_scene()
The expected HTTP method.
If TRUE, trigger the corresponding scene when this action is not matched.
TRUE
not
req_uses_method("GET") req_uses_method("POST") req_uses_get() req_uses_get(negate = TRUE) req_uses_post() req_uses_post(negate = TRUE)
Run the code above in your browser using DataLab