c

play.api.libs.ws.ahc

AhcWSClientConfig

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

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.

connectionPoolCleanerPeriod

the frequency to cleanup timeout idle connections

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

useLaxCookieEncoder

whether to use LAX(no cookie name/value verification) or STRICT (verifies cookie name/value) cookie decoder

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AhcWSClientConfig
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AhcWSClientConfig(wsClientConfig: WSClientConfig = WSClientConfig(), maxConnectionsPerHost: Int = -1, maxConnectionsTotal: Int = -1, maxConnectionLifetime: Duration = Duration.Inf, idleConnectionInPoolTimeout: Duration = 1.minute, connectionPoolCleanerPeriod: Duration = 1.second, maxNumberOfRedirects: Int = 5, maxRequestRetry: Int = 5, disableUrlEncoding: Boolean = false, keepAlive: Boolean = true, useLaxCookieEncoder: Boolean = false, useCookieStore: Boolean = false)

    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.

    connectionPoolCleanerPeriod

    the frequency to cleanup timeout idle connections

    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

    useLaxCookieEncoder

    whether to use LAX(no cookie name/value verification) or STRICT (verifies cookie name/value) cookie decoder

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. val connectionPoolCleanerPeriod: Duration
  7. val disableUrlEncoding: Boolean
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  10. val idleConnectionInPoolTimeout: Duration
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val keepAlive: Boolean
  13. val maxConnectionLifetime: Duration
  14. val maxConnectionsPerHost: Int
  15. val maxConnectionsTotal: Int
  16. val maxNumberOfRedirects: Int
  17. val maxRequestRetry: Int
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. val useCookieStore: Boolean
  24. val useLaxCookieEncoder: Boolean
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. val wsClientConfig: WSClientConfig

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped