zio.http.endpoint
Members list
Type members
Classlikes
An zio.http.endpoint.Endpoint represents an API endpoint for the HTTP
protocol. Every API
has an input, which comes from a combination of the
HTTP path, query string parameters, and headers, and an output, which is the
data computed by the handler of the API.
An zio.http.endpoint.Endpoint represents an API endpoint for the HTTP
protocol. Every API
has an input, which comes from a combination of the
HTTP path, query string parameters, and headers, and an output, which is the
data computed by the handler of the API.
MiddlewareInput : Example: A subset of HttpCodec[Input]
that doesn't give
access to Input
MiddlewareOutput: Example: A subset of Out[Output]
that
doesn't give access to Output
Input: Example: Int Output: Example: User
As zio.http.endpoint.Endpoint is a purely declarative encoding of an endpoint, it is possible to use this model to generate a zio.http.App (by supplying a handler for the endpoint), to generate OpenAPI documentation, to generate a type-safe Scala client for the endpoint, and possibly, to generate client libraries in other programming languages.
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
A zio.http.endpoint.EndpointExecutor is responsible for taking an endpoint invocation, and executing the invocation, returning the final result, or failing with a pre-defined RPC error.
A zio.http.endpoint.EndpointExecutor is responsible for taking an endpoint invocation, and executing the invocation, returning the final result, or failing with a pre-defined RPC error.
Attributes
- Companion:
- object
- Graph
- Supertypes
Attributes
- Companion:
- class
- Graph
- Supertypes
- Self type
- EndpointExecutor.type
An endpoint locator is responsible for locating endpoints.
An endpoint locator is responsible for locating endpoints.
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- EndpointLocator.type
A description of endpoint middleware, in terms of what the middleware requires from the request, and what it appends to the response.
A description of endpoint middleware, in terms of what the middleware requires from the request, and what it appends to the response.
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- EndpointMiddleware.type
An invocation represents a single invocation of an endpoint through provision of the input that the endpoint requires.
An invocation represents a single invocation of an endpoint through provision of the input that the endpoint requires.
Invocations are pure data. In order to be useful, you must execute an invocation with an EndpointExecutor.
Attributes
- Graph
- Supertypes
A RoutesMiddleware defines the middleware implementation for a given EndpointMiddleware. These middleware are defined by a pair of functions, referred to as incoming interceptor and outgoing interceptor, which are applied to incoming requests and outgoing responses.
A RoutesMiddleware defines the middleware implementation for a given EndpointMiddleware. These middleware are defined by a pair of functions, referred to as incoming interceptor and outgoing interceptor, which are applied to incoming requests and outgoing responses.
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- RoutesMiddleware.type