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)(`evidence$1`: Async[F]): OkHttpBuilder[F]

Creates a builder.

Creates a builder.

Value Params
okHttpClient

the underlying client.

def withDefaultClient[F[_]](`evidence$2`: Async[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.