RichTextCodec

zio.http.codec.RichTextCodec
See theRichTextCodec companion class
object RichTextCodec

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Lazy

Attributes

Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Lazy.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def char(c: Char): RichTextCodec[Char]

A codec that describes a single specified character.

A codec that describes a single specified character.

Attributes

def chars(cs: Char*): RichTextCodec[Char]
def charsNot(cs: Char*): RichTextCodec[Char]
def defer[A](codec: => RichTextCodec[A]): RichTextCodec[A]

Returns a lazy codec, which can be used to define recursive codecs.

Returns a lazy codec, which can be used to define recursive codecs.

Attributes

def fail[A](message: String): RichTextCodec[A]
def filter(pred: Char => Boolean): RichTextCodec[Char]

Defines a new codec for a single character based on the specified predicate.

Defines a new codec for a single character based on the specified predicate.

Attributes

def filterOrFail(pred: Char => Boolean)(failure: String): RichTextCodec[Char]
def literal(lit: String): RichTextCodec[String]

A codec that describes a literal character sequence.

A codec that describes a literal character sequence.

Attributes

def literalCI(lit: String): RichTextCodec[String]

A codec that describes a literal character sequence, ignoring case.

A codec that describes a literal character sequence, ignoring case.

Attributes

Concrete fields

val digit: RichTextCodec[Int]

A codec that describes a digit character.

A codec that describes a digit character.

Attributes

val empty: RichTextCodec[Unit]

A codec that describes nothing at all. Such codecs successfully decode even on empty input, and when encoded, do not produce any text output.

A codec that describes nothing at all. Such codecs successfully decode even on empty input, and when encoded, do not produce any text output.

Attributes

val letter: RichTextCodec[Char]

A codec that describes a letter character.

A codec that describes a letter character.

Attributes

val string: RichTextCodec[String]
lazy val whitespaceChar: RichTextCodec[Unit]

A codec that describes a single whitespace character.

A codec that describes a single whitespace character.

Attributes

lazy val whitespaces: RichTextCodec[Unit]

A codec that describes any number of whitespace characters.

A codec that describes any number of whitespace characters.

Attributes