play.api.libs.ws.ahc

Members list

Type members

Classlikes

class AhcWSClient(underlyingClient: StandaloneAhcWSClient) extends WSClient

Async WS Client backed by AsyncHttpClient.

Async WS Client backed by AsyncHttpClient.

See https://www.playframework.com/documentation/latest/ScalaWS for documentation.

Attributes

Companion
object
Supertypes
trait WSClient
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all
object AhcWSClient

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
@Singleton
class AhcWSClientProvider(client: StandaloneWSClient)(implicit materializer: Materializer) extends Provider[WSClient]

AHC provider for WSClient instance.

AHC provider for WSClient instance.

Attributes

Supertypes
trait Provider[WSClient]
class Object
trait Matchable
class Any

AsyncHttpClient WS API implementation components.

AsyncHttpClient WS API implementation components.

Attributes

Supertypes
class Object
trait Matchable
class Any
class AhcWSModule extends SimpleModule

A Play binding for the Scala WS API to the AsyncHTTPClient implementation.

A Play binding for the Scala WS API to the AsyncHTTPClient implementation.

Attributes

Supertypes
class SimpleModule
class Module
class Object
trait Matchable
class Any
case class AhcWSRequest(underlying: StandaloneAhcWSRequest) extends WSRequest, WSBodyWritables

A WS Request backed by AsyncHTTPClient.

A WS Request backed by AsyncHTTPClient.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait WSRequest
trait XMLBodyWritables
trait JsonBodyWritables
trait DefaultBodyWritables
trait StandaloneWSRequest
class Object
trait Matchable
class Any
Show all
case class AhcWSResponse(underlying: StandaloneWSResponse) extends WSResponse, WSBodyReadables

A WS HTTP Response backed by an AsyncHttpClient response.

A WS HTTP Response backed by an AsyncHttpClient response.

Value parameters

underlying

the underlying WS response

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait WSResponse
trait XMLBodyReadables
trait JsonBodyReadables
trait DefaultBodyReadables
trait StandaloneWSResponse
class Object
trait Matchable
class Any
Show all
@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.

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

Supertypes
trait Provider[AsyncHttpClient]
class Object
trait Matchable
class Any
@Singleton
class OptionalAhcHttpCacheProvider(environment: Environment, configuration: Configuration, applicationLifecycle: ApplicationLifecycle)(implicit executionContext: ExecutionContext) extends Provider[Option[AhcHttpCache]]

A provider of HTTP cache.

A provider of HTTP cache.

Unfortunately this can't be bound directly through Play's DI system because it doesn't support type literals (and JSR 330 doesn't support optional).

Attributes

Supertypes
trait Provider[Option[AhcHttpCache]]
class Object
trait Matchable
class Any
@Singleton
class StandaloneWSClientProvider(asyncHttpClient: AsyncHttpClient)(implicit materializer: Materializer) extends Provider[StandaloneWSClient]

AHC provider for StandaloneWSClient instance.

AHC provider for StandaloneWSClient instance.

Attributes

Supertypes
trait Provider[StandaloneWSClient]
class Object
trait Matchable
class Any