cask.router
Members list
Type members
Classlikes
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait FormReader[T]trait JsReader[T]class ParamReader[T]class NilParam[T]object CookieParam.typeobject FormDataParam.typeobject HttpExchangeParam.typeobject RequestParam.typeclass QueryParamReader[T]class SimpleParam[T]object BooleanParam.typeobject ByteParam.typeobject DoubleParam.typeobject FloatParam.typeobject IntParam.typeobject LongParam.typeobject ShortParam.typeobject StringParam.type
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
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
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).
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
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
Attributes
- Graph
- Supertypes
- class Annotationclass Objecttrait Matchableclass Any
- Known subtypes
- class websockettrait WebEndpointclass deleteclass getclass optionsclass patchclass postclass putclass routeclass getJsonclass postFormclass postJsonclass staticFilesclass staticResources
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- EndpointMetadata.type
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.
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
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.
Attributes
- Graph
- Supertypes
- Known subtypes
- trait WebEndpointclass deleteclass getclass optionsclass patchclass postclass putclass routeclass getJsonclass postFormclass postJsonclass staticFilesclass staticResources
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- NoOpParser.type
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.
Attributes
- Graph
- Supertypes
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.
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Graph
- Supertypes
- trait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any