EntityCompiler

smithy4s.http4s.EntityCompiler
See theEntityCompiler companion object
trait EntityCompiler[F[_]]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

type Cache

Value members

Abstract methods

def compileEntityDecoder[A](schema: Schema[A], cache: Cache): EntityDecoder[F, A]

Turns a Schema into an http4s EntityDecoder

Turns a Schema into an http4s EntityDecoder

Attributes

cache

a cache that can be used to avoid recompiling encoders

schema

the value's schema

Returns:

the entity decoder associated to the A value.

def compileEntityEncoder[A](schema: Schema[A], cache: Cache): EntityEncoder[F, A]

Turns a Schema into an http4s EntityEncoder

Turns a Schema into an http4s EntityEncoder

Attributes

cache

a cache that can be used to avoid recompiling encoders

schema

the value's schema

Returns:

the entity encoder associated to the A value.

def compilePartialEntityDecoder[A](schema: Schema[A], cache: Cache): EntityDecoder[F, BodyPartial[A]]

Turns a Schema into an http4s EntityDecoder that only partially decodes the data, expecting for decoded metadata to be provided to complete the data.

Turns a Schema into an http4s EntityDecoder that only partially decodes the data, expecting for decoded metadata to be provided to complete the data.

Attributes

schema

the value's schema

Returns:

the entity encoder associated to the A value.

Deprecated methods

final def compileEntityDecoder[A](schema: Schema[A]): EntityDecoder[F, A]

Attributes

Deprecated
true
final def compileEntityEncoder[A](schema: Schema[A]): EntityEncoder[F, A]

Attributes

Deprecated
true
final def compilePartialEntityDecoder[A](schema: Schema[A]): EntityDecoder[F, BodyPartial[A]]

Attributes

Deprecated
true