| PlumberStep {plumber} | R Documentation |
plumber step R6 class
Description
an object representing a step in the lifecycle of the treatment of a request by a plumber router.
Super class
plumber::Hookable -> PlumberStep
Public fields
srcreffrom step block
lineslines from step block
serializerstep serializer function
Methods
Public methods
Inherited methods
Method new()
Create a new PlumberStep() object
Usage
PlumberStep$new(expr, envir, lines, serializer, srcref)
Arguments
exprstep expr
envirstep environment
linesstep block
serializerstep serializer
srcrefsrcrefattribute from block
Returns
A new PlumberStep object
Method exec()
step execution function
Usage
PlumberStep$exec(req, res)
Arguments
req, resRequest and response objects created by a Plumber request
Method registerHook()
step hook registration method
Usage
PlumberStep$registerHook(
stage = c("preexec", "postexec", "aroundexec"),
handler
)Arguments
stagea character string.
handlera step handler function.
Method clone()
The objects of this class are cloneable with this method.
Usage
PlumberStep$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
[Package plumber version 1.2.2 Index]