an object representing a step in the lifecycle of the treatment of a request by a plumber router.
plumber::Hookable
-> PlumberStep
lines
lines from step block
serializer
step serializer function
new()
Create a new PlumberStep()
object
PlumberStep$new(expr, envir, lines, serializer)
expr
step expr
envir
step environment
lines
step block
serializer
step serializer
A new PlumberStep
object
exec()
step execution function
PlumberStep$exec(req, res)
req, res
Request and response objects created by a Plumber request
registerHook()
step hook registration method
PlumberStep$registerHook( stage = c("preexec", "postexec", "aroundexec"), handler )
stage
a character string.
handler
a step handler function.
clone()
The objects of this class are cloneable with this method.
PlumberStep$clone(deep = FALSE)
deep
Whether to make a deep clone.