Kingfisher Documentation

Structure KF.​Redirect​Payload

public struct RedirectPayload  

Represents the detail information when a task redirect happens. It is wrapping necessary information for a ImageDownloadRedirectHandler. See that protocol for more information.

Member Of


A helper type to create image setting tasks in a builder pattern. Use methods in this type to create a KF.Builder instance and configure image tasks there.



public let task: SessionDataTask

The related session data task when the redirect happens. It is the current SessionDataTask which triggers this redirect.


public let response: HTTPURLResponse

The response received during redirection.


public let newRequest: URLRequest

The request for redirection which can be modified.


public let completionHandler: (URLRequest?) -> Void

A closure for being called with modified request.