OkHttpEngineConfig

The configuration parameters for an OkHttp HTTP client engine.

Types

Link copied to clipboard
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val certificatePinner: CertificatePinner?

Certificate pinner that validates server certificates against known public key pins. Used to prevent man-in-the-middle attacks by ensuring the server presents expected certificates.

Link copied to clipboard

List of cipher suites to enable for TLS connections. If null, uses OkHttp defaults. When specified, only the listed cipher suites will be enabled.

Link copied to clipboard

The interval in which to poll idle connections for remote closure or null to disable monitoring of idle connections. The default value is null.

Link copied to clipboard

Custom hostname verifier for validating server hostnames during TLS handshake. By default, OkHttp verifies that the certificate's hostname matches the request hostname. Use this to implement custom hostname verification logic.

Link copied to clipboard

Key manager that supplies client certificates for mutual TLS (mTLS) authentication. When provided, the client will present certificates from this key manager when the server requests client authentication. Used for scenarios requiring client certificate authentication.

Link copied to clipboard

The maximum number of requests to execute concurrently for a single host.

Link copied to clipboard

Trust manager used to validate server certificates during TLS handshake. Determines whether to trust the certificate chain presented by a remote server. When provided, this trust manager will be used instead of the default system trust store.

Inherited properties

Link copied to clipboard
Link copied to clipboard
open override val connectionIdleTimeout: Duration
Link copied to clipboard
open override val connectTimeout: Duration
Link copied to clipboard
open override val hostResolver: HostResolver
Link copied to clipboard
open override val maxConcurrency: UInt
Link copied to clipboard
open override val proxySelector: ProxySelector
Link copied to clipboard
open override val socketReadTimeout: Duration
Link copied to clipboard
open override val socketWriteTimeout: Duration
Link copied to clipboard
Link copied to clipboard
open override val tlsContext: TlsContext

Functions

Link copied to clipboard