AhcWSClientConfig
play.api.libs.ws.ahc.AhcWSClientConfig
case class AhcWSClientConfig(wsClientConfig: WSClientConfig, maxConnectionsPerHost: Int, maxConnectionsTotal: Int, maxConnectionLifetime: Duration, idleConnectionInPoolTimeout: Duration, connectionPoolCleanerPeriod: Duration, maxNumberOfRedirects: Int, maxRequestRetry: Int, disableUrlEncoding: Boolean, keepAlive: Boolean, useLaxCookieEncoder: Boolean, useCookieStore: Boolean)
Ahc client config.
Value parameters
- connectionPoolCleanerPeriod
-
the frequency to cleanup timeout idle connections
- disableUrlEncoding
-
Whether the raw URL should be used.
- idleConnectionInPoolTimeout
-
The time after which a connection that has been idle in the pool should be closed.
- keepAlive
-
keeps thread pool active, replaces allowPoolingConnection and allowSslConnectionPool
- maxConnectionLifetime
-
The maximum time that a connection should live for in the pool.
- 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.
- maxNumberOfRedirects
-
The maximum number of redirects.
- maxRequestRetry
-
The maximum number of times to retry a request if it fails.
- useLaxCookieEncoder
-
whether to use LAX(no cookie name/value verification) or STRICT (verifies cookie name/value) cookie decoder
- wsClientConfig
-
The general WS client config.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article