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 AhcLoggerFactory extends LoggerFactory

    Permalink
  3. trait AhcUtilities extends AnyRef

    Permalink

    Useful mapping code.

  4. 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

  5. class AhcWSClientConfigParser extends Provider[AhcWSClientConfig]

    Permalink

    This class creates a WSClientConfig object from configuration.

    This class creates a WSClientConfig object from configuration.

    Annotations
    @Singleton()
  6. class StandaloneAhcWSClient extends StandaloneWSClient

    Permalink

    A WS client backed by an AsyncHttpClient.

    A WS client backed by an AsyncHttpClient.

    If you need to debug AsyncHttpClient, add <logger name="play.shaded.ahc.org.asynchttpclient" level="DEBUG" /> into your conf/logback.xml file.

  7. case class StandaloneAhcWSRequest(client: StandaloneAhcWSClient, url: String, method: String = "GET", body: WSBody = EmptyBody, headers: Map[String, Seq[String]] = TreeMap()(CaseInsensitiveOrdered), queryString: Map[String, Seq[String]] = Map.empty, calc: Option[WSSignatureCalculator] = None, auth: Option[(String, String, WSAuthScheme)] = None, followRedirects: Option[Boolean] = None, requestTimeout: Option[Int] = None, virtualHost: Option[String] = None, proxyServer: Option[WSProxyServer] = None, disableUrlEncoding: Option[Boolean] = None, filters: Seq[WSRequestFilter] = Nil)(implicit materializer: Materializer) extends StandaloneWSRequest with AhcUtilities with Product with Serializable

    Permalink

    A Ahc WS Request.

  8. class StandaloneAhcWSResponse extends StandaloneWSResponse with AhcUtilities

    Permalink

    A WS HTTP response.

Value Members

  1. object AhcWSClientConfigFactory

    Permalink

    Factory for creating AhcWSClientConfig, for use from Java.

  2. object StandaloneAhcWSClient

    Permalink
  3. object StandaloneAhcWSResponse

    Permalink
  4. package cache

    Permalink

Ungrouped