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