EntityCompiler

trait EntityCompiler[F[_]]
Companion:
object
class Object
trait Matchable
class Any

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

Value parameters:
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

Value parameters:
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.

Value parameters:
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]
Deprecated
final def compileEntityEncoder[A](schema: Schema[A]): EntityEncoder[F, A]
Deprecated
final def compilePartialEntityDecoder[A](schema: Schema[A]): EntityDecoder[F, BodyPartial[A]]
Deprecated