Config

zio.http.ZClient.Config
See theConfig companion object
final case class Config(ssl: Option[ClientSSLConfig], proxy: Option[Proxy], connectionPool: ConnectionPoolConfig, maxInitialLineLength: Int, maxHeaderSize: Int, requestDecompression: Decompression, localAddress: Option[InetSocketAddress], addUserAgentHeader: Boolean, webSocketConfig: WebSocketConfig, idleTimeout: Option[Duration], connectionTimeout: Option[Duration], bodyReadTimeout: Option[Duration] = ...)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def addUserAgentHeader(addUserAgentHeader: Boolean): Config

Configure the timeout for reading HTTP response bodies. This timeout is specifically for the time spent reading the body after headers are received. If not set, defaults to idleTimeout.

Configure the timeout for reading HTTP response bodies. This timeout is specifically for the time spent reading the body after headers are received. If not set, defaults to idleTimeout.

This is separate from:

  • connectionTimeout: Time to establish TCP connection
  • idleTimeout: Time channel can be idle without any data

Value parameters

timeout

The duration to wait for body data

Attributes

def dynamicConnectionPool(minimum: Int, maximum: Int, ttl: Duration): Config
def idleTimeout(timeout: Duration): Config
def maxHeaderSize(headerSize: Int): Config

Configure the client to use maxHeaderSize value when encode/decode headers.

Configure the client to use maxHeaderSize value when encode/decode headers.

Attributes

def maxInitialLineLength(initialLineLength: Int): Config
def proxy(proxy: Proxy): Config
def webSocketConfig(webSocketConfig: WebSocketConfig): Config

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product