Packages

sealed abstract class OkHttpBuilder[F[_]] extends AnyRef

A builder for 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
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val blockingExecutionContext: ExecutionContext
  2. def create(implicit F: ConcurrentEffect[F], cs: ContextShift[F]): Client[F]

    Creates the org.http4s.client.Client

    Creates the org.http4s.client.Client

    The shutdown method on this client is a no-op. It is assumed that the OkHttp client is passed to us as a Resource, or that the caller will shut it down, or that the caller is comfortable letting OkHttp's resources expire on their own.

  3. val okHttpClient: OkHttpClient
  4. def resource(implicit F: ConcurrentEffect[F], cs: ContextShift[F]): Resource[F, Client[F]]

    Creates the org,http4s.client.Client as a resource.

    Creates the org,http4s.client.Client as a resource.

    The release on this resource is a no-op. It is assumed that the OkHttp client is passed to us as a Resource, or that the caller will shut it down, or that the caller is comfortable letting OkHttp's resources expire on their own.

  5. def stream(implicit F: ConcurrentEffect[F], cs: ContextShift[F]): Stream[F, Client[F]]

    Creates the org,http4s.client.Client as a singleton stream.

    Creates the org,http4s.client.Client as a singleton stream.

    The bracketed release on this stream is a no-op. It is assumed that the OkHttp client is passed to us as a Resource, or that the caller will shut it down, or that the caller is comfortable letting OkHttp's resources expire on their own.

  6. def withBlockingExecutionContext(blockingExecutionContext: ExecutionContext): OkHttpBuilder[F]
  7. def withOkHttpClient(okHttpClient: OkHttpClient): OkHttpBuilder[F]