download(_:didCancel:)
Sent if an authentication challenge is canceled due to the protocol implementation encountering an error.
Declaration
optional func download(_ download: NSURLDownload, didCancel challenge: URLAuthenticationChallenge)Parameters
- download:
The URL download object sending the message.
- challenge:
The authentication challenge that caused the download object to cancel the download.
Discussion
If the delegate receives this message the download will fail and the delegate will receive a download(_:didFailWithError:) message.