Constant

zio.http.codec.TextCodec.Constant
final case class Constant(string: String) extends TextCodec[Unit]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TextCodec[Unit]
trait PartialFunction[String, Unit]
trait String => Unit
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(value: String): Unit
def describe: String
def encode(value: Unit): String
def isDefinedAt(value: String): Boolean
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any

Inherited methods

def andThen[C](k: PartialFunction[Unit, C]): PartialFunction[A, C]

Attributes

Inherited from:
PartialFunction
override def andThen[C](k: Unit => C): PartialFunction[A, C]

Attributes

Definition Classes
PartialFunction -> Function1
Inherited from:
PartialFunction
def applyOrElse[A1 <: String, B1 >: Unit](x: A1, default: A1 => B1): B1

Attributes

Inherited from:
PartialFunction
def compose[R](k: PartialFunction[R, String]): PartialFunction[R, B]

Attributes

Inherited from:
PartialFunction
def compose[A](g: A => String): A => R

Attributes

Inherited from:
Function1
final def decode(value: String): Option[A]

Attributes

Inherited from:
TextCodec
def elementWise: ElementWiseExtractor[A, B]

Attributes

Inherited from:
PartialFunction
def lift: A => Option[B]

Attributes

Inherited from:
PartialFunction
def orElse[A1 <: String, B1 >: Unit](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

Attributes

Inherited from:
PartialFunction
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def runWith[U](action: Unit => U): A => Boolean

Attributes

Inherited from:
PartialFunction
def unapply(a: String): Option[B]

Attributes

Inherited from:
PartialFunction