ru.dgis.sdk.platform.HttpOptions | Android SDK | 2GIS Documentation
Android SDK

HttpOptions

HTTP client options.

HttpOptions(
	timeout: Duration = Duration.ofMilliseconds(15000),
	useCache: Boolean = true,
	cacheStoragePath: String? = null,
	cacheMaxSize: Long? = null,
	certificates: List?<Certificate> = null,
	proxy: HttpProxyOptions? = null
)

HTTP client options.

Parameters
timeout
useCache
cacheStoragePath
cacheMaxSize
certificates
proxy
Returns
Properties

Timeout for HTTP requests.

Use the HTTP cache.

Path to the root-level directory for the primary HTTP cache file storage. File storage will be located in the http_cache subdirectory of this directory. If the path is not specified, the default directory is used.

Maximum size of the HTTP cache in bytes. If not specified, the default maximum HTTP cache size is 300 Mb.

Certificates in the PEM format. If not set, the system certificates and the ones shipped with the SDK are used.

Proxy settings.