cask.router
Type members
Classlikes
Models what is known by the router about a single argument: that it has
a name, a human-readable typeString describing what the type is
(just for logging and reading, not a replacement for a TypeTag
) and
possible a function that can compute its default value
Models what is known by the router about a single argument: that it has
a name, a human-readable typeString describing what the type is
(just for logging and reading, not a replacement for a TypeTag
) and
possible a function that can compute its default value
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.
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).
- Companion:
- object
An HttpEndpoint that may return something else than a HTTP response, e.g. a websocket endpoint which may instead return a websocket event handler
An HttpEndpoint that may return something else than a HTTP response, e.g. a websocket endpoint which may instead return a websocket event handler
- Companion:
- object
What is known about a single endpoint for our routes. It has a name, argSignatures for each argument, and a macro-generated invoke0 that performs all the necessary argument parsing and de-serialization.
What is known about a single endpoint for our routes. It has a name, argSignatures for each argument, and a macro-generated invoke0 that performs all the necessary argument parsing and de-serialization.
Realistically, you will probably spend most of your time calling invoke instead, which provides a nicer API to call it that mimmicks the API of calling a Scala method.
Annotates a Cask endpoint that returns a HTTP Response; similar to a RawDecorator but with additional metadata and capabilities.
Annotates a Cask endpoint that returns a HTTP Response; similar to a RawDecorator but with additional metadata and capabilities.
A RawDecorator is a decorator that operates on the raw request and response stream, before and after the primary Endpoint does it's job.
A RawDecorator is a decorator that operates on the raw request and response stream, before and after the primary Endpoint does it's job.
Represents what comes out of an attempt to invoke an EntryPoint. Could succeed with a value, but could fail in many different ways.
Represents what comes out of an attempt to invoke an EntryPoint. Could succeed with a value, but could fail in many different ways.
- Companion:
- object