io.laminext.fetch.jsoniter.FetchJsoniterSyntax.scala Maven / Gradle / Ivy
The newest version!
package io.laminext.fetch.jsoniter
import com.github.plokhotnyuk.jsoniter_scala.core.{ writeToString, JsonValueCodec }
import scala.language.implicitConversions
trait FetchJsoniterSyntax {
implicit def jsonRequestBody[A](value: A)(implicit encoder: JsonValueCodec[A]): ToRequestBody =
new JsonToRequestBody(writeToString(value))
implicit def fetchEventStreamBuilderSyntaxJsoniter(b: FetchEventStreamBuilder): FetchEventStreamBuilderJsoniterOps =
new FetchEventStreamBuilderJsoniterOps(b)
}