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. 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 WSClientConfig object from configuration.

    This class creates a WSClientConfig object from configuration.

    Annotations
    @Singleton()
  7. trait CookieBuilder extends WSCookieConverter

    Permalink
  8. trait CurlFormat extends AnyRef

    Permalink
  9. class DefaultStreamedAsyncHandler[T] extends StreamedAsyncHandler[Unit] with AhcUtilities

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

  11. 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, cookies: Seq[WSCookie] = Seq.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 WSCookieConverter with Product with Serializable

    Permalink

    A Ahc WS Request.

  12. class StandaloneAhcWSResponse extends StandaloneWSResponse with DefaultBodyReadables with WSCookieConverter with AhcUtilities

    Permalink

    A WS HTTP response backed by org.asynchttpclient.Response.

  13. class StreamedResponse extends StandaloneWSResponse with CookieBuilder

    Permalink

    A streamed response containing a response header and a streamable body.

    A streamed response containing a response header and a streamable body.

    Note that this is only usable with a stream call, i.e.

    class MyClass extends StreamedBodyReadable {
      ws.url("http://example.com").stream().map { response =>
         val source = response.body[Source[ByteString, NotUsed]]
         ...
      }
    }
  14. case class StreamedState(statusCode: Int = 1, statusText: String = "", uriOption: Option[URI] = None, responseHeaders: Map[String, Seq[String]] = Map.empty, publisher: Publisher[HttpResponseBodyPart] = EmptyPublisher) extends Product with Serializable

    Permalink
  15. trait WSCookieConverter extends AnyRef

    Permalink

    Converts between AHC cookie and the WS cookie.

Value Members

  1. object AhcCurlRequestLogger

    Permalink
  2. object AhcWSClientConfigFactory

    Permalink

    Factory for creating AhcWSClientConfig, for use from Java.

  3. object StandaloneAhcWSClient

    Permalink
  4. object StandaloneAhcWSResponse

    Permalink
  5. package cache

    Permalink

Ungrouped