Top-level endpoint descriptor. Combines a route pattern with input/output/error HTTP codecs, authentication, and documentation.
Pure data — no implement* methods, no Invocation, no codec errors.
Choosing an out overload — pick the row matching what the response needs:
| want status? | want media-type? | call |
|-----------------------|------------------|--------------------------------------|
| no (defaults to 200) | no | out(schema) |
| no (defaults to 200) | no (+ docs) | out(schema, doc) |
| yes | no | out(status, schema) |
| no (defaults to 200) | yes | out(mediaType, schema) |
| yes (+ docs) | no (+ docs) | out(status, schema, doc) |
| no (defaults to 200) | yes (+ docs) | out(mediaType, schema, doc) |
| yes | yes | out(status, mediaType, schema) |
| yes (+ docs) | yes (+ docs) | out(status, mediaType, schema, doc) |
| (already a codec) | (already a codec)| out(codec) |
Only the out(schema) / out(schema, doc) / out(mediaType, ...) rows default the status to 200 Ok; every overload that takes an explicit status uses exactly that status. The outError / orOutError overloads mirror these rows but always require an explicit status (errors never default to Ok).
Attributes
- Companion
- object
- Source
- Endpoint.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Adds a typed request header using a zio.http.Header.Codec.
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Adds a response body described by schema, defaulting the expected status to 200 Ok (via HttpCodec.Ok). This default applies ONLY to the overloads without an explicit status — out(status, schema) uses exactly the status given and nothing else. See the decision table on Endpoint for which overload to pick.
Adds a response body described by schema, defaulting the expected status to 200 Ok (via HttpCodec.Ok). This default applies ONLY to the overloads without an explicit status — out(status, schema) uses exactly the status given and nothing else. See the decision table on Endpoint for which overload to pick.
Attributes
- Source
- Endpoint.scala
Like out(schema), plus documentation — the expected status still defaults to 200 Ok (via HttpCodec.Ok).
Like out(schema), plus documentation — the expected status still defaults to 200 Ok (via HttpCodec.Ok).
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Adds a typed response header using a zio.http.Header.Codec.
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Attributes
- Source
- Endpoint.scala
Inherited methods
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
- Source
- Product.scala
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
- Source
- Product.scala