AdapterResponse
public enum AdapterResponse
The response from a call to a HTTPAdapter
. The cases encode the various
possible states of the request.
-
A successful request, but one without any data.
Declaration
Swift
case empty(headers: [String: String])
-
A successful request, with a payload of
Data
.Declaration
Swift
case success(result: Data, headers: [String: String])
-
An unsuccessful request, with a corresponding error. There is no restriction on the error returned.
Declaration
Swift
case error(result: Error, headers: [String: String])