WSClientConfig

play.api.libs.ws.WSClientConfig
case class WSClientConfig(connectionTimeout: Duration, idleTimeout: Duration, requestTimeout: Duration, followRedirects: Boolean, useProxyProperties: Boolean, userAgent: Option[String], compressionEnabled: Boolean, ssl: SSLConfigSettings)

WS client config

Value parameters

compressionEnabled

Set it to true to use gzip/deflater encoding (default is false).

connectionTimeout

The maximum time to wait when connecting to the remote host (default is 120 seconds).

followRedirects

Configures the client to follow 301 and 302 redirects (default is true).

idleTimeout

The maximum time the request can stay idle (connection is established but waiting for more data) (default is 120 seconds).

requestTimeout

The total time you accept a request to take (it will be interrupted even if the remote host is still sending data) (default is 120 seconds).

ssl

use custom SSL / TLS configuration, see https://lightbend.github.io/ssl-config/ for documentation.

useProxyProperties

To use the JVM system’s HTTP proxy settings (http.proxyHost, http.proxyPort) (default is true).

userAgent

To configure the User-Agent header field (default is None).

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product