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
- Source
- RichTextCodec.scala
- 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
- Source
- RichTextCodec.scala
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
- Source
- RichTextCodec.scala
Tags the codec with a label used in the documentation
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
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
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
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
Constructs documentation for this rich text codec.
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
- Source
- RichTextCodec.scala
This method is Right biased merge
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
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
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala
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.
When both codecs have the same output type, the result type is unified (no Either wrapper). When types differ, the result is Either[A, B].
Attributes
- Source
- RichTextCodec.scala
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
- Source
- RichTextCodec.scala
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.
Attributes
- Source
- RichTextCodec.scala
Attributes
- Source
- RichTextCodec.scala