com.mdsol.mauth.SttpAkkaMAuthRequestSender.scala Maven / Gradle / Ivy
The newest version!
package com.mdsol.mauth
import cats.effect.IO
import sttp.client3.{Request, Response, SttpBackend}
import scala.concurrent.Future
class SttpAkkaMAuthRequestSender(
signer: MAuthSttpSigner,
sttpBackend: SttpBackend[Future, Any]
) extends SttpMAuthRequestSender[IO] {
override def send[T](request: Request[T, Any]): IO[Response[T]] =
IO.fromFuture(
IO(
sttpBackend.send(signer.signSttpRequest(request))
)
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy