PortalRequests

constructor(onUnauthorized: () -> Unit? = null, connectTimeoutMs: Int = DEFAULT_CONNECT_TIMEOUT_MS, readTimeoutMs: Int = DEFAULT_READ_TIMEOUT_MS)

Parameters

onUnauthorized

See the property of the same name.

connectTimeoutMs

Cap on establishing the connection.

readTimeoutMs

Cap on waiting for response data. Matches the 60s iOS URLSessionConfiguration.default request timeout; postEnclaveMPCApi overrides it, see ENCLAVE_READ_TIMEOUT_MS.