ResponseEncoder

smithy4s.http4s.kernel.ResponseEncoder$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Types

type CachedCompiler[F[_]] = CachedSchemaCompiler[[_] =>> ResponseEncoder[F, _$2]]

Value members

Concrete methods

def forError[F[_], E](errorTypeHeaders: List[String], maybeErrorable: Option[Errorable[E]], encoderCompiler: CachedSchemaCompiler[[_] =>> ResponseEncoder[F, _$4]]): ResponseEncoder[F, E]
def fromEntityEncoder[F[_] : Concurrent, A](implicit evidence$1: Concurrent[F], entityEncoder: EntityEncoder[F, A]): ResponseEncoder[F, A]
def fromEntityEncoderK[F[_] : Concurrent]: PolyFunction[[_] =>> EntityEncoder[F, _$18], [_] =>> ResponseEncoder[F, _$19]]
def fromMetadataEncoder[F[_], A](metadataEncoder: Encoder[A]): ResponseEncoder[F, A]
def fromMetadataEncoderK[F[_]]: PolyFunction[Encoder, [_] =>> ResponseEncoder[F, _$14]]
def metadataResponseEncoder[F[_]]: ResponseEncoder[F, Metadata]
def restSchemaCompiler[F[_]](metadataEncoderCompiler: CachedSchemaCompiler[Encoder], entityEncoderCompiler: CachedSchemaCompiler[[_] =>> EntityEncoder[F, _$26]])(implicit F: Concurrent[F]): CachedSchemaCompiler[[_] =>> ResponseEncoder[F, _$27]]

A compiler for ResponseEncoder that abides by REST-semantics : fields that are annotated with httpHeader and httpStatusCode are encoded as the corresponding metadata.

A compiler for ResponseEncoder that abides by REST-semantics : fields that are annotated with httpHeader and httpStatusCode are encoded as the corresponding metadata.

The rest is used to formulate the body of the message.

Attributes

def rpcSchemaCompiler[F[_]](entityEncoderCompiler: CachedSchemaCompiler[[_] =>> EntityEncoder[F, _$23]])(implicit F: Concurrent[F]): CachedSchemaCompiler[[_] =>> ResponseEncoder[F, _$24]]

A compiler for ResponseEncoder that encodes the whole data in the body of the request

A compiler for ResponseEncoder that encodes the whole data in the body of the request

Attributes