EndpointSampleResponse
public enum EndpointSampleResponse
Used for stubbing responses.
-
The network returned a response, including status code and data.
Declaration
Swift
case networkResponse(Int, Data) -
The network returned response which can be fully customized.
Declaration
Swift
case response(HTTPURLResponse, Data) -
The network failed to send the request, or failed to retrieve a response (eg a timeout).
Declaration
Swift
case networkError(NSError)
EndpointSampleResponse Enumeration Reference