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 String => Unit
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(value: String): Unit
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

Attributes

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

Attributes

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

Attributes

Inherited from:
PartialFunction

Attributes

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

Attributes

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

Attributes

Inherited from:
TextCodec

Attributes

Inherited from:
PartialFunction
def lift: String => Option[Unit]

Attributes

Inherited from:
PartialFunction

Attributes

Inherited from:
PartialFunction

Attributes

Inherited from:
Product

Attributes

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

Attributes

Inherited from:
PartialFunction

Attributes

Inherited from:
PartialFunction