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
trait CirceInstances extends JawnInstances
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
object JsonDecoder
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[_], J](implicit evidence$1: Concurrent[F], evidence$2: Facade[J]): EntityDecoder[F, J]
Inherited from
JawnInstances
def jsonDecoderAdaptive[F[_]](cutoff: Long, r1: MediaRange, rs: MediaRange*)(implicit evidence$5: Concurrent[F]): EntityDecoder[F, Json]
Inherited from
CirceInstances
def jsonDecoderByteBuffer[F[_]](implicit evidence$2: Concurrent[F]): EntityDecoder[F, Json]
Inherited from
CirceInstances
def jsonDecoderIncremental[F[_]](implicit evidence$1: Concurrent[F]): EntityDecoder[F, Json]
Inherited from
CirceInstances
def jsonEncoderOf[F[_], A](implicit evidence$10: Encoder[A]): EntityEncoder[F, A]
Inherited from
CirceInstances
def jsonEncoderWithPrinter[F[_]](printer: Printer): EntityEncoder[F, Json]
Inherited from
CirceInstances
def jsonEncoderWithPrinterOf[F[_], A](printer: Printer)(implicit encoder: Encoder[A]): EntityEncoder[F, A]
Inherited from
CirceInstances
def jsonOf[F[_], A](implicit evidence$6: Concurrent[F], evidence$7: Decoder[A]): EntityDecoder[F, A]
Inherited from
CirceInstances
def jsonOfSensitive[F[_], A](redact: Json => String)(implicit evidence$8: Concurrent[F], evidence$9: Decoder[A]): 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
def streamJsonArrayEncoderOf[F[_], A](implicit evidence$12: Encoder[A]): EntityEncoder[F, Stream[F, A]]
Inherited from
CirceInstances
def streamJsonArrayEncoderWithPrinter[F[_]](printer: Printer): EntityEncoder[F, Stream[F, Json]]

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[_]](implicit evidence$4: Concurrent[F]): EntityDecoder[F, Json]
Inherited from
CirceInstances
implicit def jsonEncoder[F[_]]: EntityEncoder[F, Json]
Inherited from
CirceInstances
implicit def streamJsonArrayDecoder[F[_]](implicit evidence$11: Concurrent[F]): EntityDecoder[F, Stream[F, Json]]
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