Package-level declarations

Types

Link copied to clipboard
typealias ChallengeHandler = (<Error class: unknown class>, <Error class: unknown class>, <Error class: unknown class>, completionHandler: (<Error class: unknown class>, <Error class: unknown class>?) -> Unit) -> Unit

A challenge handler type for NSURLSession.

Link copied to clipboard
object Darwin

A Kotlin/Native client engine that targets Darwin-based operating systems (such as macOS, iOS, tvOS, and so on) and uses NSURLSession internally.

Link copied to clipboard

A configuration for the Darwin client engine.

Link copied to clipboard
class DarwinHttpRequestException(val origin: <Error class: unknown class>)
Link copied to clipboard
class KtorNSURLSessionDelegate(challengeHandler: ChallengeHandler?)

A delegate for NSURLSession that bridges it to Ktor. If users set custom session in DarwinClientEngineConfig.sessionAndDelegate, they need to register this delegate in their session. This can be done by registering it directly, extending their custom delegate from it or by calling required methods from their custom delegate.

Functions