c

play.api.libs.ws.ahc

AsyncHttpClientProvider

class AsyncHttpClientProvider extends Provider[AsyncHttpClient]

Provides an instance of AsyncHttpClient configured from the Configuration object.

Annotations
@Singleton()
Source
AhcWSModule.scala
Linear Supertypes
Provider[AsyncHttpClient], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncHttpClientProvider
  2. Provider
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AsyncHttpClientProvider(environment: Environment, configuration: Configuration, applicationLifecycle: ApplicationLifecycle)(implicit executionContext: ExecutionContext)

    environment

    the Play environment

    configuration

    the Play configuration

    applicationLifecycle

    app lifecycle, instance is closed automatically.

    Annotations
    @Inject()

Value Members

  1. lazy val get: AsyncHttpClient
    Definition Classes
    AsyncHttpClientProvider → Provider