Static file router
Static file router
plumber::Hookable
-> plumber::Plumber
-> PlumberStatic
Inherited methods
plumber::Hookable$registerHooks()
plumber::Plumber$addAssets()
plumber::Plumber$addEndpoint()
plumber::Plumber$addFilter()
plumber::Plumber$addGlobalProcessor()
plumber::Plumber$call()
plumber::Plumber$filter()
plumber::Plumber$getApiSpec()
plumber::Plumber$getDebug()
plumber::Plumber$handle()
plumber::Plumber$mount()
plumber::Plumber$onHeaders()
plumber::Plumber$onWSOpen()
plumber::Plumber$openAPIFile()
plumber::Plumber$registerHook()
plumber::Plumber$removeHandle()
plumber::Plumber$route()
plumber::Plumber$run()
plumber::Plumber$serve()
plumber::Plumber$set404Handler()
plumber::Plumber$setApiSpec()
plumber::Plumber$setDebug()
plumber::Plumber$setDocs()
plumber::Plumber$setDocsCallback()
plumber::Plumber$setErrorHandler()
plumber::Plumber$setParsers()
plumber::Plumber$setSerializer()
plumber::Plumber$swaggerFile()
plumber::Plumber$unmount()
new()
Create a new PlumberStatic
router
PlumberStatic$new(direc, options)
direc
a path to an asset directory.
options
options to be evaluated in the PlumberStatic
router environment
A new PlumberStatic
router
print()
Print representation of PlumberStatic()
router.
PlumberStatic$print(prefix = "", topLevel = TRUE, ...)
prefix
a character string. Prefix to append to representation.
topLevel
a logical value. When method executed on top level
router, set to TRUE
.
...
additional arguments for recursive calls
A terminal friendly representation of a PlumberStatic()
router.
clone()
The objects of this class are cloneable with this method.
PlumberStatic$clone(deep = FALSE)
deep
Whether to make a deep clone.
Creates a router that is backed by a directory of files on disk.