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

spice.http.client.intercept.InterceptorAdapter.scala Maven / Gradle / Ivy

The newest version!
package spice.http.client.intercept

import cats.effect.IO
import spice.http.{HttpRequest, HttpResponse}

import scala.util.Try

abstract class InterceptorAdapter extends Interceptor {
  override def before(request: HttpRequest): IO[HttpRequest] = IO.pure(request)

  override def after(request: HttpRequest, result: Try[HttpResponse]): IO[Try[HttpResponse]] = IO.pure(result)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy