DefaultDownloadResponse
public struct DefaultDownloadResponse
                Used to store all data associated with an non-serialized response of a download request.
- 
                  
                  
The URL request sent to the server.
Declaration
Swift
public let request: URLRequest? - 
                  
                  
The server’s response to the URL request.
Declaration
Swift
public let response: HTTPURLResponse? - 
                  
                  
The temporary destination URL of the data returned from the server.
Declaration
Swift
public let temporaryURL: URL? - 
                  
                  
The final destination URL of the data returned from the server if it was moved.
Declaration
Swift
public let destinationURL: URL? - 
                  
                  
The resume data generated if the request was cancelled.
Declaration
Swift
public let resumeData: Data? - 
                  
                  
The error encountered while executing or validating the request.
Declaration
Swift
public let error: Error? - 
                  
                  
The timeline of the complete lifecycle of the request.
Declaration
Swift
public let timeline: Timeline - 
                  
                  
Creates a
DefaultDownloadResponseinstance from the specified parameters.Declaration
Parameters
requestThe URL request sent to the server.
responseThe server’s response to the URL request.
temporaryURLThe temporary destination URL of the data returned from the server.
destinationURLThe final destination URL of the data returned from the server if it was moved.
resumeDataThe resume data generated if the request was cancelled.
errorThe error encountered while executing or validating the request.
timelineThe timeline of the complete lifecycle of the request.
Timeline()by default.metricsThe task metrics containing the request / response statistics.
nilby default. - 
                  
                  
The task metrics containing the request / response statistics.
Declaration
Swift
public var metrics: URLSessionTaskMetrics? { get } 
      DefaultDownloadResponse Structure Reference