STRUCT

ResponseAndData

Contents

public struct ResponseAndData

Holder for a URLResponse and optional Data instance, to be passed along as a bundle.

Properties

response

public let response: URLResponse

A URLResponse instance to represent the response of a dataTask operation

data

public let data: Data?

A Data instance to represent the data that was the result of the request, as it accompanies the response of the ResponseAndData struct.