req_uses_method {scenes} | R Documentation |
Create a scene_action
specifying the HTTP method that must be used (or not
used).
req_uses_method(method, negate = FALSE)
req_uses_get(negate = FALSE)
req_uses_post(negate = FALSE)
method |
The expected HTTP method. |
negate |
If |
A scene_action
object, to be used in set_scene()
.
req_uses_method("GET")
req_uses_method("POST")
req_uses_get()
req_uses_get(negate = TRUE)
req_uses_post()
req_uses_post(negate = TRUE)