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

KF

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.

Properties

task

public let task: SessionDataTask

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

response

public let response: HTTPURLResponse

The response received during redirection.

new​Request

public let newRequest: URLRequest

The request for redirection which can be modified.

completion​Handler

public let completionHandler: (URLRequest?) -> Void

A closure for being called with modified request.