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
Members list
Value members
Concrete methods
Returns a new API that is derived from this one, but which includes additional documentation that will be included in OpenAPI generation.
Returns a new API that is derived from this one, but which includes additional documentation that will be included in OpenAPI generation.
Attributes
Returns a new endpoint derived from this one whose middleware is composed from the existing middleware of this endpoint, and the specified middleware.
Returns a new endpoint derived from this one whose middleware is composed from the existing middleware of this endpoint, and the specified middleware.
Attributes
Returns a new endpoint that requires the specified headers to be present.
Returns a new endpoint that requires the specified headers to be present.
Attributes
Converts this endpoint, which is an abstract description of an endpoint, into a path, which maps a path to a handler for that path. In order to convert an endpoint into a path, you must specify a function which handles the input, and returns the output.
Converts this endpoint, which is an abstract description of an endpoint, into a path, which maps a path to a handler for that path. In order to convert an endpoint into a path, you must specify a function which handles the input, and returns the output.
Attributes
Converts this endpoint, which is an abstract description of an endpoint, into a path, which maps a path to a handler for that path. In order to convert an endpoint into a path, you must specify the output, while the input is being ignored.
Converts this endpoint, which is an abstract description of an endpoint, into a path, which maps a path to a handler for that path. In order to convert an endpoint into a path, you must specify the output, while the input is being ignored.
Attributes
Converts this endpoint, which is an abstract description of an endpoint, into a path, which maps a path to a handler for that path. In order to convert an endpoint into a path, you must specify the error, while the input is being ignored.
Converts this endpoint, which is an abstract description of an endpoint, into a path, which maps a path to a handler for that path. In order to convert an endpoint into a path, you must specify the error, while the input is being ignored.
Attributes
Converts this endpoint, which is an abstract description of an endpoint, into a path, which maps a path to a handler for that path. In order to convert an endpoint into a path, you must specify a function which handles the input, and returns the output.
Converts this endpoint, which is an abstract description of an endpoint, into a path, which maps a path to a handler for that path. In order to convert an endpoint into a path, you must specify a function which handles the input, and returns the output.
Attributes
Returns a new endpoint derived from this one, whose request content must satisfy the specified schema.
Returns a new endpoint derived from this one, whose request content must satisfy the specified schema.
Attributes
Returns a new endpoint derived from this one, whose request content must satisfy the specified schema and is documented.
Returns a new endpoint derived from this one, whose request content must satisfy the specified schema and is documented.
Attributes
Returns a new endpoint derived from this one, whose request content must satisfy the specified schema and is documented.
Returns a new endpoint derived from this one, whose request content must satisfy the specified schema and is documented.
Attributes
Returns a new endpoint derived from this one, whose request content must satisfy the specified schema and is documented.
Returns a new endpoint derived from this one, whose request content must satisfy the specified schema and is documented.
Attributes
Returns a new endpoint derived from this one, whose request must satisfy the specified codec.
Returns a new endpoint derived from this one, whose request must satisfy the specified codec.
Attributes
Returns a new endpoint derived from this one, whose input type is a stream of the specified typ.
Returns a new endpoint derived from this one, whose input type is a stream of the specified typ.
Attributes
Returns a new endpoint derived from this one, whose input type is a stream of the specified type and is documented.
Returns a new endpoint derived from this one, whose input type is a stream of the specified type and is documented.
Attributes
Returns a new endpoint derived from this one, whose input type is a stream of the specified type.
Returns a new endpoint derived from this one, whose input type is a stream of the specified type.
Attributes
Returns a new endpoint derived from this one, whose input type is a stream of the specified type and is documented.
Returns a new endpoint derived from this one, whose input type is a stream of the specified type and is documented.
Attributes
Returns a new endpoint derived from this one, whose output type is the specified type for the ok status code.
Returns a new endpoint derived from this one, whose output type is the specified type for the ok status code.
Attributes
Returns a new endpoint derived from this one, whose output type is the specified type for the ok status code and is documented.
Returns a new endpoint derived from this one, whose output type is the specified type for the ok status code and is documented.
Attributes
Returns a new endpoint derived from this one, whose output type is the specified type for the ok status code.
Returns a new endpoint derived from this one, whose output type is the specified type for the ok status code.
Attributes
Returns a new endpoint derived from this one, whose output type is the specified type for the specified status code.
Returns a new endpoint derived from this one, whose output type is the specified type for the specified status code.
Attributes
Returns a new endpoint derived from this one, whose output type is the specified type for the specified status code and is documented.
Returns a new endpoint derived from this one, whose output type is the specified type for the specified status code and is documented.
Attributes
Returns a new endpoint derived from this one, whose output type is the specified type for the ok status code and is documented.
Returns a new endpoint derived from this one, whose output type is the specified type for the ok status code and is documented.
Attributes
Returns a new endpoint derived from this one, whose output type is the specified type for the specified status code and is documented.
Returns a new endpoint derived from this one, whose output type is the specified type for the specified status code and is documented.
Attributes
Returns a new endpoint derived from this one, whose output type is the specified type for the specified status code.
Returns a new endpoint derived from this one, whose output type is the specified type for the specified status code.
Attributes
Returns a new endpoint derived from this one, whose response must satisfy the specified codec.
Returns a new endpoint derived from this one, whose response must satisfy the specified codec.
Attributes
Returns a new endpoint that can fail with the specified error type for the specified status code.
Returns a new endpoint that can fail with the specified error type for the specified status code.
Attributes
Returns a new endpoint that can fail with the specified error type for the specified status code and is documented.
Returns a new endpoint that can fail with the specified error type for the specified status code and is documented.
Attributes
Returns a new endpoint derived from this one, whose output type is a stream of the specified type for the ok status code.
Returns a new endpoint derived from this one, whose output type is a stream of the specified type for the ok status code.
Attributes
Returns a new endpoint derived from this one, whose output type is a stream of the specified type for the ok status code.
Returns a new endpoint derived from this one, whose output type is a stream of the specified type for the ok status code.
Attributes
Returns a new endpoint derived from this one, whose output type is a stream of the specified type for the specified status code and is documented.
Returns a new endpoint derived from this one, whose output type is a stream of the specified type for the specified status code and is documented.
Attributes
Returns a new endpoint with the specified path appended.
Returns a new endpoint with the specified path appended.
Attributes
Returns a new endpoint that requires the specified query.
Returns a new endpoint that requires the specified query.