All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.nrk.bigquery.client.http4s.Http4sImplicits.scala Maven / Gradle / Ivy

There is a newer version: 0.19.2
Show newest version
/*
 * Copyright 2020 NRK
 *
 * SPDX-License-Identifier: MIT
 */

package no.nrk.bigquery.client.http4s

import cats.effect.Concurrent
import io.circe.{Decoder, Encoder}
import org.http4s.{EntityDecoder, EntityEncoder}

private[client] object Http4sImplicits {
  private[client] implicit def entityEncoder[F[_], A: Encoder]: EntityEncoder[F, A] =
    org.http4s.circe.jsonEncoderOf[F, A]

  private[client] implicit def entityDecoder[F[_]: Concurrent, A: Decoder]: EntityDecoder[F, A] =
    org.http4s.circe.jsonOf[F, A]

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy