Packages

p

zio.http

codec

package codec

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. codec
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package internal

Type Members

  1. sealed trait Alternator[L, R] extends AnyRef

    A alternator is a type class responsible for combining invariant type parameters using an either.

    A alternator is a type class responsible for combining invariant type parameters using an either. It is used to compose parameters of the zio.http.codec.HttpCodec data type.

  2. trait AlternatorLowPriority1 extends AlternatorLowPriority2
  3. trait AlternatorLowPriority2 extends AlternatorLowPriority3
  4. trait AlternatorLowPriority3 extends AnyRef
  5. sealed trait Combiner[L, R] extends AnyRef

    A combiner is a type class responsible for combining invariant type parameters using a tuple.

    A combiner is a type class responsible for combining invariant type parameters using a tuple. It is used to compose the parameters of the zio.http.codec.HttpCodec data type.

  6. trait CombinerLowPriority1 extends CombinerLowPriority2
  7. trait CombinerLowPriority2 extends CombinerLowPriority3
  8. trait CombinerLowPriority3 extends CombinerLowPriority4
  9. trait CombinerLowPriority4 extends AnyRef
  10. type ContentCodec[A] = HttpCodec[Content, A]
  11. sealed trait Doc extends AnyRef

    A Doc models documentation for an endpoint or input.

  12. type HeaderCodec[A] = HttpCodec[Header, A]
  13. sealed trait HttpCodec[-AtomTypes, Value] extends AnyRef

    A zio.http.codec.HttpCodec represents a codec for a part of an HTTP request.

    A zio.http.codec.HttpCodec represents a codec for a part of an HTTP request. HttpCodec the HTTP protocol, these parts may be the unconsumed portion of the HTTP path (a route codec), the query string parameters (a query codec), the request headers (a header codec), or the request body (a body codec).

    A HttpCodec is a purely declarative description of an input, and therefore, it can be used to generate documentation, clients, and client libraries.

    HttpCodecs are a bit like invertible multi-channel parsers.

  14. sealed trait HttpCodecError extends Exception with NoStackTrace
  15. sealed trait HttpCodecType extends AnyRef
  16. type MethodCodec[A] = HttpCodec[Method, A]
  17. type PathCodec[A] = HttpCodec[codec.HttpCodecType.Path, A]
  18. type QueryCodec[A] = HttpCodec[Query, A]
  19. sealed trait RichTextCodec[A] extends AnyRef

    A RichTextCodec is a more compositional version of TextCodec, which has similar power to traditional parser combinators / pretty printers.

    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.

  20. sealed trait SimpleCodec[Input, Output] extends PartialFunction[Input, Output]

    A simple codec is either equal to a given value, or unconstrained within a domain of values.

  21. type StatusCodec[A] = HttpCodec[Status, A]
  22. sealed trait TextCodec[A] extends PartialFunction[String, A]

    A zio.http.codec.TextCodec defines a codec for a text fragment.

    A zio.http.codec.TextCodec defines a codec for a text fragment. The text fragment can be decoded into a value, or the value can be encoded into a text fragment.

    Unlike parsers, text codecs operate on entire fragments. They do not consume input and leave remainders. Also unlike parsers, text codecs do not fail with error messages, but rather, simply return None if they do not succeed in decoding from a given text fragment. Finally, unlike ordinary parsers, text codecs are fully invertible, and can therefore be used in client generation.

Value Members

  1. object Alternator extends AlternatorLowPriority1
  2. object Combiner extends CombinerLowPriority1
  3. object ContentCodec extends ContentCodecs
  4. object Doc
  5. object HeaderCodec extends HeaderCodecs
  6. object HttpCodec extends ContentCodecs with HeaderCodecs with MethodCodecs with PathCodecs with QueryCodecs with StatusCodecs
  7. object HttpCodecError extends Serializable
  8. object HttpCodecType
  9. object MethodCodec extends MethodCodecs
  10. object PathCodec extends PathCodecs
  11. object QueryCodec extends QueryCodecs
  12. object RichTextCodec
  13. object SimpleCodec
  14. object StatusCodec extends StatusCodecs
  15. object TextCodec

Inherited from AnyRef

Inherited from Any

Ungrouped