Packages

object AsyncHttpClient

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

Value Members

  1. def allocate[F[_]](config: AsyncHttpClientConfig = defaultConfig)(implicit F: ConcurrentEffect[F]): F[(Client[F], F[Unit])]

    Allocates a Client and its shutdown mechanism for freeing resources.

  2. def apply[F[_]](httpClient: AsyncHttpClient)(implicit F: ConcurrentEffect[F]): Client[F]
  3. def configure(configurationFn: (Builder) ⇒ Builder): AsyncHttpClientConfig

    Create a custom AsyncHttpClientConfig

    Create a custom AsyncHttpClientConfig

    configurationFn

    function that maps from the builder of the defaultConfig to the custom config's builder

    returns

    a custom configuration.

  4. val defaultConfig: DefaultAsyncHttpClientConfig
  5. def resource[F[_]](config: AsyncHttpClientConfig = defaultConfig)(implicit F: ConcurrentEffect[F]): Resource[F, Client[F]]

    Create an HTTP client based on the AsyncHttpClient library

    Create an HTTP client based on the AsyncHttpClient library

    config

    configuration for the client

  6. def stream[F[_]](config: AsyncHttpClientConfig = defaultConfig)(implicit F: ConcurrentEffect[F]): Stream[F, Client[F]]

    Create a bracketed HTTP client based on the AsyncHttpClient library.

    Create a bracketed HTTP client based on the AsyncHttpClient library.

    config

    configuration for the client

    returns

    a singleton stream of the client. The client will be shutdown when the stream terminates.