Redirector

public struct Redirector

Redirector is a convenience RedirectHandler making it easy to follow, not follow, or modify a redirect.

  • Declaration

    Swift

    public func task(_ task: URLSessionTask,
                     willBeRedirectedTo request: URLRequest,
                     for response: HTTPURLResponse,
                     completion: @escaping (URLRequest?) -> Void)