OkHttpBuilder

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[_] : Async](okHttpClient: OkHttpClient): OkHttpBuilder[F]

Creates a builder.

Creates a builder.

Value parameters:
okHttpClient

the underlying client.

def withDefaultClient[F[_] : Async]: 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.