A RichTextCodec
is a more compositional version of TextCodec
, which has similar power to traditional parser combinators / pretty printers. Although slower than the simpler text codecs, they can be utilized to parse structured information in HTTP headers, which in turn allows generating much better error messages and documentation than otherwise possible.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Value members
Concrete methods
Returns a new codec that is the sequential composition of this codec and the specified codec, but which only produces the value of this codec.
Returns a new codec that is the sequential composition of this codec and the specified codec, but which only produces the value of this codec.
Attributes
Tags the codec with a label used in the documentation. The label will be used but not explained
Tags the codec with a label used in the documentation. The label will be used but not explained
Attributes
Tags the codec with a label used in the documentation
Tags the codec with a label used in the documentation
Attributes
Tranforms this constant unit codec to a constant codec of another type.
Tranforms this constant unit codec to a constant codec of another type.
Attributes
Converts this codec of A
into a codec of Unit
by specifying a canonical value to use when an HTTP client needs to generate a value for this codec.
Converts this codec of A
into a codec of Unit
by specifying a canonical value to use when an HTTP client needs to generate a value for this codec.
Attributes
Constructs documentation for this rich text codec.
Constructs documentation for this rich text codec.
Attributes
Encodes a value into a string, or if this is not possible, fails with an error message.
Encodes a value into a string, or if this is not possible, fails with an error message.
Attributes
This method is Right biased merge
This method is Right biased merge
Attributes
Attempts to validate a decoded value, or fails using the specified failure message.
Attempts to validate a decoded value, or fails using the specified failure message.
Attributes
Returns a new codec that is the fallback composition of this codec and the specified codec, preferring this codec, but falling back to the specified codec in the event of failure.
Returns a new codec that is the fallback composition of this codec and the specified codec, preferring this codec, but falling back to the specified codec in the event of failure.
Attributes
Returns a new codec that is the sequential composition of this codec and the specified codec, producing the values of both as a tuple.
Returns a new codec that is the sequential composition of this codec and the specified codec, producing the values of both as a tuple.
Attributes
Returns a new codec that is the sequential composition of this codec and the specified codec, but which only produces the value of that codec.
Returns a new codec that is the sequential composition of this codec and the specified codec, but which only produces the value of that codec.