DataResponse

public struct DataResponse<Value>

Used to store all data associated with a serialized response of a data or upload 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 server 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?