ServerEndpointInParts
An endpoint description together with partial server logic. See Endpoint.serverLogicPart.
The part of the server logic which is provided transforms some inputs either to an error of type E
, or value of
type U
.
The part of the server logic which is not provided, transforms a tuple: (U, R)
either into an error of type E
,
or a value of type O
.
- Type Params
- E
Error output parameter types.
- F
The effect type used in the provided server logic.
- I
Entire input parameter types.
I = T + R
, whereT
is the part of the input consumed by the partial logic, and converted toU
.- IR
Remaining input parameter types, for which logic has yet to be provided.
- O
Output parameter types.
- R
The capabilities that are required by this endpoint's inputs/outputs.
Any
, if no requirements.- U
The type of the value returned by the partial server logic.
Type members
Types
Part of the input, consumed by logicFragment
.
Part of the input, consumed by logicFragment
.
Value members
Abstract methods
Concrete methods
Complete the server logic for this endpoint, given the result of applying the partial server logic, and the remaining input.
Complete the server logic for this endpoint, given the result of applying the partial server logic, and the remaining input.
Define logic for some part of the remaining input. The result will be an server endpoint, which will need to be completed with a function accepting as arguments outputs of both previous and this server logic parts, and the input.
Define logic for some part of the remaining input. The result will be an server endpoint, which will need to be completed with a function accepting as arguments outputs of both previous and this server logic parts, and the input.
Same as andThenPart, but requires E
to be a throwable, and coverts failed effects of type E
to
endpoint errors.
Same as andThenPart, but requires E
to be a throwable, and coverts failed effects of type E
to
endpoint errors.
Inherited methods
- Inherited from
- EndpointInfoOps
Renders endpoint path, by default all parametrised path and query components are replaced by {param_name} or {paramN}, e.g. for
Renders endpoint path, by default all parametrised path and query components are replaced by {param_name} or {paramN}, e.g. for
endpoint.in("p1" / path[String] / query[String]("par2"))
returns /p1/{param1}?par2={par2}
- Value Params
- includeAuth
Should authentication inputs be included in the result.
- Inherited from
- EndpointMetaOps
Basic information about the endpoint, excluding mapping information, with inputs sorted (first the method, then path, etc.)
Basic information about the endpoint, excluding mapping information, with inputs sorted (first the method, then path, etc.)
- Inherited from
- EndpointMetaOps
Detailed description of the endpoint, with inputs/outputs represented in the same order as originally defined, including mapping information.
Detailed description of the endpoint, with inputs/outputs represented in the same order as originally defined, including mapping information.
- Inherited from
- EndpointMetaOps
Equivalent to .toString
, shows the whole case class structure.
Equivalent to .toString
, shows the whole case class structure.
- Inherited from
- EndpointMetaOps