OrElse

oxygen.http.core.PathCodec.OrElse
final case class OrElse[A, B >: A](a: PathCodec[A], b: PathCodec[B], tt: TypeTest[B, A]) extends PathCodec[B]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait PathCodec[B]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def decode(paths: List[String]): Option[(B, List[String])]

Attributes

Definition Classes
override def encode(value: B): Growable[String]

Attributes

Definition Classes

Inherited methods

final def /[B](that: PathCodec[B])(using zip: Zip[B, B]): PathCodec[zip.Out]

Attributes

Inherited from:
PathCodec
final def <||[B >: B](that: PathCodec[B])(using ct: TypeTest[B, B]): PathCodec[B]

Attributes

Inherited from:
PathCodec
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def ||>[B <: B](that: PathCodec[B])(using ct: TypeTest[B, B]): PathCodec[B]

Attributes

Inherited from:
PathCodec

Concrete fields

override val specs: Growable[Growable[Spec]]

Potential paths this can parse/produce.

Potential paths this can parse/produce.

Growable( Growable("by", "name", Param), Growable("id", Param), )

represents: /by/name/% /id/%

Attributes