Classes

The following classes are available globally.

  • A flexible http client decoupled from request building and response handling

    See more

    Declaration

    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 more

    Declaration

    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 more

    Declaration

    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 more

    Declaration

    Swift

    public class RequestBuilder : CustomStringConvertible, CustomDebugStringConvertible
    extension RequestBuilder: URLRequestConvertible