EndpointMiddleware

zio.http.endpoint.EndpointMiddleware$
See theEndpointMiddleware companion trait

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case object None extends EndpointMiddleware

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
None.type
final case class Spec[In0, Err0, Out0](input: HttpCodec[Header & Query & Method, In0], output: HttpCodec[Header, Out0], error: HttpCodec[ResponseType, Err0], doc: Doc) extends EndpointMiddleware

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
Spec[In0, Err0, Out0]

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def addHeader[A](headerCodec: HeaderCodec[A]): Typed[Unit, Nothing, A]

Add specified header to the response

Add specified header to the response

Attributes

def apply[In0, Out0](input: HttpCodec[Header & Query & Method, In0], output: HttpCodec[Header, Out0]): Typed[In0, Nothing, Out0]
def apply[In0, Out0](input: HttpCodec[Header & Query & Method, In0], output: HttpCodec[Header, Out0], doc: Doc): Typed[In0, Nothing, Out0]
def apply[In0, Err0, Out0](input: HttpCodec[Header & Query & Method, In0], output: HttpCodec[Header, Out0], error: HttpCodec[ResponseType, Err0], doc: Doc): Typed[In0, Err0, Out0]
def requireHeader[A](codec: HeaderCodec[A]): Typed[A, Nothing, Unit]
def setCookie: Typed[SetCookie, Nothing, Unit]

Concrete fields

val auth: Typed[Authorization, Nothing, Unit]
val none: None