KtorNSURLSessionDelegate
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.
For HTTP requests to work property, it's important that users call these functions:
URLSession:dataTask:didReceiveData:
URLSession:task:didCompleteWithError:
URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:
For WebSockets to work, it's important that users call these functions:
URLSession:webSocketTask:didOpenWithProtocol:
URLSession:webSocketTask:didCloseWithCode:reason:
Functions
Handle challenge.
Disable embedded redirects.