an object representing a step in the lifecycle of the treatment of a request by a plumber router.
plumber::Hookable
-> PlumberStep
srcref
from step block
lines
lines from step block
serializer
step serializer function
Inherited methods
new()
Create a new PlumberStep()
object
PlumberStep$new(expr, envir, lines, serializer, srcref)
expr
step expr
envir
step environment
lines
step block
serializer
step serializer
srcref
srcref
attribute from block
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.