Fallback

zio.blocks.endpoint.HttpCodec.Fallback
final case class Fallback[K <: CodecKind, A, B, C](left: HttpCodec[K, A], right: HttpCodec[K, B], alternator: WithOut[A, B, C]) extends HttpCodec[K, C]

Alternative between two codecs.

Attributes

Source
HttpCodec.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait HttpCodec[K, C]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def ++[B, C](that: HttpCodec[K, B])(implicit combiner: WithOut[C, B, C]): HttpCodec[K, C]

Attributes

Inherited from:
HttpCodec
Source
HttpCodec.scala
def productElementNames: Iterator[String]

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
def productIterator: Iterator[Any]

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
def |[B, C](that: HttpCodec[K, B])(implicit alternator: WithOut[C, B, C]): HttpCodec[K, C]

Attributes

Inherited from:
HttpCodec
Source
HttpCodec.scala