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
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 DarwinLegacy client engine.
Link copied to clipboard
class KtorLegacyNSURLSessionDelegate(challengeHandler: ChallengeHandler?) : NSObject, NSURLSessionDataDelegateProtocol
A delegate for NSURLSession that bridges it to Ktor. If users set custom session in DarwinLegacyClientEngineConfig.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
Link copied to clipboard
Creates an instance of KtorLegacyNSURLSessionDelegate