EndpointHandler
Handles the result of decoding a request using an endpoint's inputs.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Called when the given request hasn't been successfully decoded, because of the given failure on the given input. This is captured by
the ctx
parameter.
Called when the given request hasn't been successfully decoded, because of the given failure on the given input. This is captured by
the ctx
parameter.
Might be called multiple times per request.
Attributes
- Returns:
An effect, describing the optional server response. If
None
, the next endpoint will be tried (if any).
Called when the request has been successfully decoded into data, and when the security logic succeeded. This is captured by the ctx
parameter.
Called when the request has been successfully decoded into data, and when the security logic succeeded. This is captured by the ctx
parameter.
Called at most once per request.
Attributes
- A
The type of the endpoint's security inputs.
- I
The type of the endpoint's inputs.
- U
Type of the successful result of the security logic.
- Returns:
An effect, describing the server's response.
Called when the security inputs have been successfully decoded into data, but the security logic failed (either with an error result
or an exception). This is captured by the ctx
parameter.
Called when the security inputs have been successfully decoded into data, but the security logic failed (either with an error result
or an exception). This is captured by the ctx
parameter.
Called at most once per request.
Attributes
- A
The type of the endpoint's security inputs.
- Returns:
An effect, describing the server's response.