PathCodec

oxygen.http.core.PathCodec
See thePathCodec companion object
trait PathCodec[A]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AllRemaining
class AndThen[A, B, C]
class Const
class Consts
class OrElse[A, B]
class SingleTypedParam[A]
Show all

Members list

Value members

Abstract methods

def decode(paths: List[String]): Option[(A, List[String])]
def encode(value: A): Growable[String]

Concrete methods

final def /[B](that: PathCodec[B])(using zip: Zip[A, B]): PathCodec[zip.Out]
final def <||[B >: A](that: PathCodec[B])(using ct: TypeTest[B, A]): PathCodec[B]
final def ||>[B <: A](that: PathCodec[B])(using ct: TypeTest[A, B]): PathCodec[A]

Abstract fields

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