HttpOptions | iOS SDK | Urbi Documentation
iOS SDK

HttpOptions

HTTP client options.

public init(
    timeout: TimeInterval = 15,
    useCache: Bool = true,
    cacheStoragePath: String? = nil,
    cacheMaxSize: UInt64? = nil
)
Parameters
timeout
useCache
cacheStoragePath
cacheMaxSize
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.