Package-level declarations

Types

Link copied to clipboard
typealias ChallengeHandler = (session: NSURLSession, task: NSURLSessionTask, challenge: NSURLAuthenticationChallenge, completionHandler: (NSURLSessionAuthChallengeDisposition, NSURLCredential?) -> Unit) -> Unit

A challenge handler type for NSURLSession.

Link copied to clipboard

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: NSError) : IOException
Link copied to clipboard
class KtorNSURLSessionDelegate(challengeHandler: ChallengeHandler?) : NSObject, NSURLSessionDataDelegateProtocol, NSURLSessionWebSocketDelegateProtocol

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