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

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

There is a newer version: 0.7.2
Show 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 - 2025 Weber Informatics LLC | Privacy Policy