public class UnbluDefaultFileDownloadHandler : NSObject, UnbluFileDownloadHandler
extension UnbluDefaultFileDownloadHandler: URLSessionDelegate
The default file downloader provided by Unblu. Use this when configuring the UnbluCoreSDK unless you want to provide your own file downloader. In that case, provide a file conforming to the
Called by the CoreSDK when a request is made to download a file. It uses the cookies provided along with the
URLRequestto execute the file downloaded. Once completed it will report back to the CoreSDK.
public func downloadFile(atUrl url: URL, cookies: [HTTPCookie])
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)