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, blockingExecutionContext: ExecutionContext)(implicit F: ConcurrentEffect[F], cs: ContextShift[F]): OkHttpBuilder[F]

    Creates a builder.

    Creates a builder.

    okHttpClient

    the underlying client.

    blockingExecutionContext

    an execution context onto which all blocking I/O operations will be shifted.

  2. def withDefaultClient[F[_]](blockingExecutionContext: ExecutionContext)(implicit F: ConcurrentEffect[F], cs: 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.

    blockingExecutionContext

    an execution context onto which all blocking I/O operations will be shifted.