HTTPOptions | iOS SDK | 2GIS Documentation
iOS SDK

HTTPOptions

Keys for accessing 2GIS services.

public init(
	timeout: TimeInterval,
	cacheOptions: CacheOptions?
)
Parameters
timeout
cacheOptions
CacheOptions?
Properties

Network protocol wait time. Defaults to 15 seconds.

HTTPOptions.CacheOptions?

Caching mode. If nil, no cache is used. The default is to use the disk cache in the user's cache directory (NSCachesDirectory).

Default settings. Maximum cache size: 300 MB.