Response
public enum Response : CustomStringConvertible
The outcome of a network request: either success (with an entity representing the resource’s current state), or failure (with an error).
-
The request succeeded, and returned the given entity.
Declaration
Swift
case success(Entity<Any>)
-
The request failed because of the given error.
Declaration
Swift
case failure(RequestError)
-
True if this is a cancellation response
Declaration
Swift
public var isCancellation: Bool { get }