Request
public struct Request
extension Download.Request: CustomStringConvertible
Combines all the necessary input to execute an HTTP download.
-
The remote address of the resource to download.
Declaration
Swift
public var resourceAddress: URL
-
A block called with the temporary location of the file on disk. The block must either move the file or open it for reading, otherwise the file gets deleted after the block returns. The block should return the new path of the file.
Declaration
Swift
public var destination: (URL) throws -> URL
-
The maximum amount of time (in seconds) that an operation’s load activity can execute while the operation is running.
Declaration
Swift
public var timeoutInterval: TimeInterval?
-
Cookies to send along the HTTP request.
Declaration
Swift
public var cookies: [String : String]
-
Undocumented
Declaration
Swift
public init(resourceAddress: URL, cookies: [String: String] = [:], timeoutInterval: TimeInterval? = nil, destination: @escaping (URL) throws -> URL)
-
Declaration
Swift
public var description: String { get }