ZServerEndpointInParts
An endpoint description together with partial server logic. See RichZEndpoint.zServerLogicPart.
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, J)
either into an error of type E
, or a value of type
O
.
- Type Params
- C
The capabilities that are required by this endpoint's inputs/outputs.
Any
, if no requirements.- E
Error output parameter types.
- I
Entire input parameter types.
I = T + J
, whereT
is the part of the input consumed by the partial logic, and converted toU
.- J
Remaining input parameter types, for which logic has yet to be provided.
- O
Output parameter types.
- R
The environment needed by the partial server logic.
- 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
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.
Inherited methods
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