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

    Permalink
  4. trait AhcUtilities extends AnyRef

    Permalink

    Useful mapping code.

  5. class AhcWSClient extends WSClient

    Permalink

    Async WS Client backed by AsyncHttpClient.

    Async WS Client backed by AsyncHttpClient.

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

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

  7. class AhcWSClientConfigParser extends Provider[AhcWSClientConfig]

    Permalink

    This class creates a WSClientConfig object from configuration.

    This class creates a WSClientConfig object from configuration.

    Annotations
    @Singleton()
  8. trait AhcWSComponents extends AnyRef

    Permalink

    AsyncHttpClient WS API implementation components.

  9. class AhcWSModule extends SimpleModule

    Permalink

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

  10. case class AhcWSRequest(underlying: StandaloneAhcWSRequest) extends WSRequest with Product with Serializable

    Permalink

    A WS Request backed by AsyncHTTPClient.

  11. case class AhcWSResponse(underlying: StandaloneAhcWSResponse) extends WSResponse with Product with Serializable

    Permalink

    A WS HTTP Response backed by an AsyncHttpClient response.

  12. class AsyncHttpClientProvider extends Provider[AsyncHttpClient]

    Permalink

    Provides an instance of AsyncHttpClient configured from the Configuration object.

    Provides an instance of AsyncHttpClient configured from the Configuration object.

    Annotations
    @Singleton()
  13. trait CurlFormat extends AnyRef

    Permalink
  14. 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.

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

  16. class StandaloneAhcWSResponse extends StandaloneWSResponse with AhcUtilities

    Permalink

    A WS HTTP response.

  17. class WSClientProvider extends Provider[WSClient]

    Permalink
    Annotations
    @Singleton()

Value Members

  1. object AhcCurlRequestLogger

    Permalink
  2. object AhcWSClient

    Permalink
  3. object AhcWSClientConfigFactory

    Permalink

    Factory for creating AhcWSClientConfig, for use from Java.

  4. object StandaloneAhcWSClient

    Permalink
  5. object StandaloneAhcWSResponse

    Permalink
  6. package cache

    Permalink

Ungrouped