PathCodec

harness.endpoint.spec.PathCodec
See thePathCodec companion object
sealed trait PathCodec[A]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Const
object Empty.type
class IMap[A, B]
class IMapDecode[A, B]
class OneOf[A]
class Param[A]
class Rest
class RestNonEmpty
class Then[A, B, O]
Show all
Self type

Members list

Value members

Abstract methods

def encodePath(o: A): List[String]

Concrete methods

final def /[B](that: PathCodec[B])(implicit z: Zip[A, B]): PathCodec[Out]
final def /[B](p: String): PathCodec[A]
final def decodePath(paths: List[String]): Option[A]
final def imap[B](to: A => B, from: B => A): PathCodec[B]
final def imapDecode[B](to: A => Option[B], from: B => A): PathCodec[B]

Abstract fields

val schemas: NonEmptyList[List[PathSchema]]