Replies: 1 comment 1 reply
-
The // YourViewController
let downloader = KingfisherManager.shared.downloader // Or another downloader if you are not using the default one.
downloader.delegate = self
extension YourViewController: ImageDownloaderDelegate {
func imageDownloader(_ downloader: ImageDownloader, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
// Do anything with response
// Remember to call the handler with either `.allow` or `.cancel`.
completionHandler(.allow)
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have some headers in response i want to access it. how can i get it?
Beta Was this translation helpful? Give feedback.
All reactions