RequestDecoder

smithy4s.http4s.kernel.RequestDecoder$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Types

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

Value members

Concrete methods

def fromMetadataDecoder[F[_] : MonadThrow, A](metadataDecoder: Decoder[A]): RequestDecoder[F, A]

Creates a RequestDecoder that decodes an HTTP message by looking at the metadata.

Creates a RequestDecoder that decodes an HTTP message by looking at the metadata.

NB: This decoder assumes that incoming requests have been enriched with pre-extracted path-parameters in the vault.

Attributes

def fromMetadataDecoderK[F[_] : MonadThrow]: PolyFunction[Decoder, [_] =>> RequestDecoder[F, _$5]]
def restSchemaCompiler[F[_]](metadataDecoderCompiler: CachedSchemaCompiler[Decoder], entityDecoderCompiler: CachedSchemaCompiler[[_] =>> EntityDecoder[F, _$8]])(implicit F: Concurrent[F]): CachedSchemaCompiler[[_] =>> RequestDecoder[F, _$9]]

A compiler for RequestDecoder that abides by REST-semantics : fields that are annotated with httpLabel, httpHeader, httpQuery, httpStatusCode ... are decoded from the corresponding metadata.

A compiler for RequestDecoder that abides by REST-semantics : fields that are annotated with httpLabel, httpHeader, httpQuery, httpStatusCode ... are decoded from the corresponding metadata.

The rest is decoded from the body.

Attributes