Packages

object OkHttpBuilder

Builder for a org.http4s.client.Client with an OkHttp backend

Source
OkHttpBuilder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OkHttpBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[F[_]](okHttpClient: OkHttpClient, blocker: Blocker)(implicit arg0: ConcurrentEffect[F], arg1: ContextShift[F]): OkHttpBuilder[F]

    Creates a builder.

    Creates a builder.

    okHttpClient

    the underlying client.

    blocker

    a cats.effect.Blocker onto which all blocking I/O operations will be shifted.

  2. def withDefaultClient[F[_]](blocker: Blocker)(implicit arg0: ConcurrentEffect[F], arg1: ContextShift[F]): Resource[F, OkHttpBuilder[F]]

    Create a builder with a default OkHttp client.

    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.

    blocker

    a cats.effect.Blocker onto which all blocking I/O operations will be shifted.