DefaultDataResponse
public struct DefaultDataResponse
                Used to store all data associated with an non-serialized response of a data or upload 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 data returned by the server.
Declaration
Swift
public let data: 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
DefaultDataResponseinstance from the specified parameters.Declaration
Parameters
requestThe URL request sent to the server.
responseThe server’s response to the URL request.
dataThe data returned by the server.
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 } 
      DefaultDataResponse Structure Reference