AsyncHttpClientProvider

play.api.libs.ws.ahc.AsyncHttpClientProvider
@Singleton
class AsyncHttpClientProvider(environment: Environment, configuration: Configuration, applicationLifecycle: ApplicationLifecycle)(implicit executionContext: ExecutionContext) extends Provider[AsyncHttpClient]

Provides an instance of AsyncHttpClient configured from the Configuration object.

Value parameters

applicationLifecycle

app lifecycle, instance is closed automatically.

configuration

the Play configuration

environment

the Play environment

Attributes

Graph
Supertypes
trait Provider[AsyncHttpClient]
class Object
trait Matchable
class Any

Members list

Value members

Concrete fields

lazy val get: AsyncHttpClient