object OkHttpBuilder
Builder for a org.http4s.client.Client with an OkHttp backend
Builder for a org.http4s.client.Client with an OkHttp backend
- Companion
- class
class Object
trait Matchable
class Any
Value members
Concrete methods
def apply[F[_]](okHttpClient: OkHttpClient, blocker: Blocker)(`evidence$1`: ConcurrentEffect[F], `evidence$2`: ContextShift[F]): OkHttpBuilder[F]
Creates a builder.
Creates a builder.
- Value Params
- blocker
a cats.effect.Blocker onto which all blocking I/O operations will be shifted.
- okHttpClient
the underlying client.
def withDefaultClient[F[_]](blocker: Blocker)(`evidence$3`: ConcurrentEffect[F], `evidence$4`: ContextShift[F]): Resource[F, OkHttpBuilder[F]]
Create a builder with a default OkHttp client. The builder is
returned as a Resource
so we shut down the OkHttp client that
we create.
Create a builder with a default OkHttp client. The builder is
returned as a Resource
so we shut down the OkHttp client that
we create.
- Value Params
- blocker
a cats.effect.Blocker onto which all blocking I/O operations will be shifted.