OkHttpConfig
A configuration for the OkHttp client engine.
Properties
Link copied to clipboard
Specifies the size of cache that keeps recently used OkHttpClient instances. Set this property to 0 to disable caching.
Link copied to clipboard
Link copied to clipboard
Specifies if duplex streaming is enabled for the OkHttpClient. Setting this to true allows clients to send and receive data simultaneously using bidirectional streaming (HTTP/2 only).
Link copied to clipboard
Link copied to clipboard
Allows you to specify a preconfigured OkHttpClient instance.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Specifies the WebSocket.Factory used to create a WebSocket instance. Otherwise, OkHttpClient is used directly.