Classes
The following classes are available globally.
-
A flexible http client decoupled from request building and response handling
See moreDeclaration
Swift
public class APIClient
-
Typed high level abstraction of a service request and response
This class is parametrized over the response type expectation The request configuration associated with this Endpoint is encoded in the RequestBuilder.
See moreDeclaration
Swift
public final class Endpoint<Response> : CustomStringConvertible, CustomDebugStringConvertible
extension Endpoint: URLResponseCapable
extension Endpoint: URLRequestConvertible
-
A ClientHijacker implementation that can register fake response substitutes and errors in memory.
See moreDeclaration
Swift
public class MockDataClientHijacker : ClientHijacker
-
A builder pattern to easily create http requests
Note: The base URL will be injected by the APIClient so only path if configured here.
See moreDeclaration
Swift
public class RequestBuilder : CustomStringConvertible, CustomDebugStringConvertible
extension RequestBuilder: URLRequestConvertible