EntityCompiler

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

Value members

Abstract methods

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

Turns a Schema into an http4s EntityDecoder

Turns a Schema into an http4s EntityDecoder

Value Params
schema

the value's schema

Returns

the entity decoder associated to the A value.

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

Turns a Schema into an http4s EntityEncoder

Turns a Schema into an http4s EntityEncoder

Value Params
schema

the value's schema

Returns

the entity encoder associated to the A value.

def compilePartialEntityDecoder[A](schema: Schema[A]): 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 Params
schema

the value's schema

Returns

the entity encoder associated to the A value.