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.
A helper type to create image setting tasks in a builder pattern. Use methods in this type to create a
KF.Builderinstance and configure image tasks there.
public let task: SessionDataTask
The related session data task when the redirect happens. It is
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.