cask.router.Decorator
See theDecorator companion object
A Decorator allows you to annotate a function to wrap it, via
wrapFunction
. You can use this to perform additional validation before or
after the function runs, provide an additional parameter list of params,
open/commit/rollback database transactions before/after the function runs,
or even retrying the wrapped function if it fails.
Calls to the wrapped function are done on the delegate
parameter passed
to wrapFunction
, which takes a Map
representing any additional argument
lists (if any).
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Annotationclass Objecttrait Matchableclass Any
- Known subtypes
- class websockettrait WebEndpointclass deleteclass getclass optionsclass patchclass postclass putclass routeclass getJsonclass postFormclass postJsonclass staticFilesclass staticResourcestrait RawDecorator