Builder
Builder for configuring and creating DefaultGiniHttpClientProvider instances.
Parameters
context
Android context
Functions
Link copied to clipboard
Build the DefaultGiniHttpClientProvider instance with the configured settings.
Link copied to clipboard
Set the cache implementation to use with OkHttp caching. If no cache is set, no caching will be used.
Link copied to clipboard
Set the connection timeout in milliseconds. This timeout applies to connect, read, and write operations.
Link copied to clipboard
Enable or disable debugging.
Link copied to clipboard
Set the hostnames for certificate pinning.
Link copied to clipboard
public final DefaultGiniHttpClientProvider.Builder setNetworkSecurityConfigResId(@XmlRes() Integer networkSecurityConfigResId)
Set the resource ID for the network security configuration XML to enable public key pinning.
Link copied to clipboard
Set a custom TrustManager implementation to have full control over which certificates to trust.