org.http4s.circe

Type members

Classlikes

Derive EntityDecoder if implicit io.circe.Decoder is in the scope without need to explicitly call jsonOf.

Derive EntityDecoder if implicit io.circe.Decoder is in the scope without need to explicitly call jsonOf.

Companion:
object

Derive EntityEncoder if implicit io.circe.Encoder is in the scope without need to explicitly call jsonEncoderOf.

Derive EntityEncoder if implicit io.circe.Encoder is in the scope without need to explicitly call jsonEncoderOf.

Companion:
object
Companion:
object
Companion:
class
sealed abstract case class CirceInstancesBuilder

Derive EntityDecoder if implicit Decoder is in the scope without need to explicitly call jsonOfSensitive

Derive EntityDecoder if implicit Decoder is in the scope without need to explicitly call jsonOfSensitive

Note that it varies from CirceEntityDecoder in that, when failing to decode io.circe.Json to an A, the JSON will not be included in the raised Exception. In the event the JSON includes sensitive data, this trait is, arguably, a better choice since it eliminates the risk of logging sensitive data, e.g. due to logging a raised Throwable that includes the sensitive JSON.

Companion:
object
final case class DecodingFailures(failures: NonEmptyList[DecodingFailure]) extends Exception

Wraps a list of decoding failures as an java.lang.Exception when using accumulatingJsonOf to decode JSON messages.

Wraps a list of decoding failures as an java.lang.Exception when using accumulatingJsonOf to decode JSON messages.

trait JsonDecoder[F[_]]

F-algebra for separating the Sync required for extracting the Json from the body. As such if F is Sync at some layer, then this can be used to extract without the lower layer needing to be aware of the strong constraint.

F-algebra for separating the Sync required for extracting the Json from the body. As such if F is Sync at some layer, then this can be used to extract without the lower layer needing to be aware of the strong constraint.

Companion:
object
Companion:
class

Value members

Inherited methods

def accumulatingJsonOf[F[_], A](implicit F: Concurrent[F], decoder: Decoder[A]): EntityDecoder[F, A]

An EntityDecoder that uses circe's accumulating decoder for decoding the JSON.

An EntityDecoder that uses circe's accumulating decoder for decoding the JSON.

In case of a failure, returns an InvalidMessageBodyFailure with the cause containing a DecodingFailures exception, from which the errors can be extracted.

Inherited from:
CirceInstances
def jawnDecoder[F[_] : Concurrent, J : Facade]: EntityDecoder[F, J]
Inherited from:
JawnInstances
Inherited from:
CirceInstances
def jsonEncoderOf[F[_], A : Encoder]: EntityEncoder[F, A]
Inherited from:
CirceInstances
Inherited from:
CirceInstances
def jsonEncoderWithPrinterOf[F[_], A](printer: Printer)(implicit encoder: Encoder[A]): EntityEncoder[F, A]
Inherited from:
CirceInstances
def jsonOf[F[_] : Concurrent, A : Decoder]: EntityDecoder[F, A]
Inherited from:
CirceInstances
def jsonOfSensitive[F[_] : Concurrent, A : Decoder](redact: Json => String): EntityDecoder[F, A]
Inherited from:
CirceInstances
def jsonOfWithMedia[F[_], A](r1: MediaRange, rs: MediaRange*)(implicit F: Concurrent[F], decoder: Decoder[A]): EntityDecoder[F, A]
Inherited from:
CirceInstances
def jsonOfWithSensitiveMedia[F[_], A](redact: Json => String, r1: MediaRange, rs: MediaRange*)(implicit F: Concurrent[F], decoder: Decoder[A]): EntityDecoder[F, A]
Inherited from:
CirceInstances
Inherited from:
CirceInstances

An EntityEncoder for a fs2.Stream of JSONs, which will encode it as a single JSON array.

An EntityEncoder for a fs2.Stream of JSONs, which will encode it as a single JSON array.

Inherited from:
CirceInstances
def streamJsonArrayEncoderWithPrinterOf[F[_], A](printer: Printer)(implicit encoder: Encoder[A]): EntityEncoder[F, Stream[F, A]]

An EntityEncoder for a fs2.Stream of values, which will encode it as a single JSON array.

An EntityEncoder for a fs2.Stream of values, which will encode it as a single JSON array.

Inherited from:
CirceInstances

Implicits

Inherited implicits

implicit val decodeUri: Decoder[Uri]
Inherited from:
CirceInstances
implicit val encodeUri: Encoder[Uri]
Inherited from:
CirceInstances
implicit def jsonDecoder[F[_] : Concurrent]: EntityDecoder[F, Json]
Inherited from:
CirceInstances
implicit def jsonEncoder[F[_]]: EntityEncoder[F, Json]
Inherited from:
CirceInstances
Inherited from:
CirceInstances
implicit def streamJsonArrayEncoder[F[_]]: EntityEncoder[F, Stream[F, Json]]
Inherited from:
CirceInstances
final implicit def toMessageSyntax[F[_]](req: Message[F]): MessageSyntax[F]
Inherited from:
CirceInstances