HTTPDataResponse

public class HTTPDataResponse

Represents a lower-level HTTP Response.

  • The underlaying HTTPURLResponse.

    Declaration

    Swift

    public let urlResponse: HTTPURLResponse
  • The raw body of the response.

    Declaration

    Swift

    public let data: Data
  • Creates a new HTTPDataResponse.

    Declaration

    Swift

    public init(urlResponse: HTTPURLResponse, data: Data)

    Parameters

    urlResponse

    The underlaying HTTPURLResponse.

    data

    The raw body of the response.