APIResponse
public struct APIResponse<Value>
Used to store all data associated with a response.
-
The URL request sent to the server.
Declaration
Swift
public let request: URLRequest? -
The data returned by the server.
Declaration
Swift
public let data: Data? -
The server’s response to the URL request.
Declaration
Swift
public let response: HTTPURLResponse? -
The associated value of the response from the server.
Declaration
Swift
public let value: Value -
Undocumented
Declaration
Swift
public init(request: URLRequest?, data: Data?, response: HTTPURLResponse?, value: Value, listInfo: ListInfo?) -
Declaration
Swift
public init(request: URLRequest?, data: Data?, response: HTTPURLResponse?, value: Value)Parameters
requestA
URLRequestvalue.dataA
Datavalue.responseA
HTTPURLResponse.valueThe associated type value
View on GitHub
APIResponse Structure Reference