Package

play.api.libs.ws

ahc

Permalink

package ahc

Visibility
  1. Public
  2. All

Type Members

  1. class AhcConfigBuilder extends AnyRef

    Permalink

    Builds a valid AsyncHttpClientConfig object from config.

  2. class AhcWSAPI extends WSAPI

    Permalink
    Annotations
    @Singleton()
  3. case class AhcWSClient(config: AsyncHttpClientConfig)(implicit materializer: Materializer) extends WSClient with Product with Serializable

    Permalink

    A WS client backed by an AsyncHttpClient.

    A WS client backed by an AsyncHttpClient.

    If you need to debug AsyncHttpClient, set logger.org.asynchttpclient=DEBUG in your application.conf file.

    config

    a client configuration object

  4. case class AhcWSClientConfig(wsClientConfig: WSClientConfig = WSClientConfig(), allowPoolingConnection: Boolean = true, allowSslConnectionPool: Boolean = true, ioThreadMultiplier: Int = 2, maxConnectionsPerHost: Int = 1, maxConnectionsTotal: Int = 1, maxConnectionLifetime: Duration = Duration.Inf, idleConnectionInPoolTimeout: Duration = 1.minute, webSocketIdleTimeout: Duration = 15.minutes, maxNumberOfRedirects: Int = 5, maxRequestRetry: Int = 5, disableUrlEncoding: Boolean = false) extends Product with Serializable

    Permalink

    Ahc client config.

    Ahc client config.

    wsClientConfig

    The general WS client config.

    allowPoolingConnection

    Whether connection pooling should be allowed.

    allowSslConnectionPool

    Whether connection pooling should be allowed for SSL connections.

    ioThreadMultiplier

    The multiplier to use for the number of IO threads.

    maxConnectionsPerHost

    The maximum number of connections to make per host. -1 means no maximum.

    maxConnectionsTotal

    The maximum total number of connections. -1 means no maximum.

    maxConnectionLifetime

    The maximum time that a connection should live for in the pool.

    idleConnectionInPoolTimeout

    The time after which a connection that has been idle in the pool should be closed.

    webSocketIdleTimeout

    The time after which a websocket connection should be closed.

    maxNumberOfRedirects

    The maximum number of redirects.

    maxRequestRetry

    The maximum number of times to retry a request if it fails.

    disableUrlEncoding

    Whether the raw URL should be used.

  5. class AhcWSClientConfigParser extends Provider[AhcWSClientConfig]

    Permalink

    This class creates a DefaultWSClientConfig object from the play.api.Configuration.

    This class creates a DefaultWSClientConfig object from the play.api.Configuration.

    Annotations
    @Singleton()
  6. trait AhcWSComponents extends AnyRef

    Permalink

    Ahc WS API implementation components.

  7. class AhcWSModule extends Module

    Permalink
  8. case class AhcWSRequest(client: AhcWSClient, url: String, method: String, body: WSBody, headers: Map[String, Seq[String]], queryString: Map[String, Seq[String]], calc: Option[WSSignatureCalculator], auth: Option[(String, String, WSAuthScheme)], followRedirects: Option[Boolean], requestTimeout: Option[Int], virtualHost: Option[String], proxyServer: Option[WSProxyServer], disableUrlEncoding: Option[Boolean])(implicit materializer: Materializer) extends WSRequest with Product with Serializable

    Permalink

    A Ahc WS Request.

  9. case class AhcWSResponse(ahcResponse: Response) extends WSResponse with Product with Serializable

    Permalink

    A WS HTTP response.

  10. class WSClientProvider extends Provider[WSClient]

    Permalink

Value Members

  1. object AhcWSClient extends Serializable

    Permalink
  2. object AhcWSClientConfigFactory

    Permalink

    Factory for creating AhcWSClientConfig, for use from Java.

  3. object AhcWSRequest extends Product with Serializable

    Permalink

Ungrouped