DownloadResponse

public struct DownloadResponse<Value>

Used to store all data associated with a serialized response of a download request.

  • The textual representation used when written to an output stream, which includes whether the result was a success or failure.

    Declaration

    Swift

    public var description: String
  • The debug textual representation used when written to an output stream, which includes the URL request, the URL response, the temporary and destination URLs, the resume data, the response serialization result and the timeline.

    Declaration

    Swift

    public var debugDescription: String
  • The task metrics containing the request / response statistics.

    Declaration

    Swift

    public var metrics: URLSessionTaskMetrics?