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 AhcCurlRequestLogger extends WSRequestFilter with CurlFormat

    Permalink

    Logs WSRequest and pulls information into Curl format to an SLF4J logger.

  3. class AhcWSAPI extends WSAPI

    Permalink
    Annotations
    @Singleton()
  4. 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

  5. case class AhcWSClientConfig(wsClientConfig: WSClientConfig = WSClientConfig(), maxConnectionsPerHost: Int = 1, maxConnectionsTotal: Int = 1, maxConnectionLifetime: Duration = Duration.Inf, idleConnectionInPoolTimeout: Duration = 1.minute, maxNumberOfRedirects: Int = 5, maxRequestRetry: Int = 5, disableUrlEncoding: Boolean = false, keepAlive: Boolean = true) extends Product with Serializable

    Permalink

    Ahc client config.

    Ahc client config.

    wsClientConfig

    The general WS client config.

    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.

    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.

    keepAlive

    keeps thread pool active, replaces allowPoolingConnection and allowSslConnectionPool

  6. 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()
  7. trait AhcWSComponents extends AnyRef

    Permalink

    Ahc WS API implementation components.

  8. class AhcWSModule extends Module

    Permalink
  9. 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], filters: Seq[WSRequestFilter] = Nil)(implicit materializer: Materializer) extends WSRequest with Product with Serializable

    Permalink

    A Ahc WS Request.

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

    Permalink

    A WS HTTP response.

  11. trait CurlFormat extends AnyRef

    Permalink
  12. class WSClientProvider extends Provider[WSClient]

    Permalink

Value Members

  1. object AhcCurlRequestLogger

    Permalink
  2. object AhcWSClient extends Serializable

    Permalink
  3. object AhcWSClientConfigFactory

    Permalink

    Factory for creating AhcWSClientConfig, for use from Java.

  4. object AhcWSRequest extends Product with Serializable

    Permalink

Ungrouped