Enums

The following enums are available globally.

  • The response from a call to a HTTPAdapter. The cases encode the various possible states of the request.

    See more

    Declaration

    Swift

    public enum AdapterResponse
  • Defines headers as an enum. Defines the canonical set of headers. Custom headers can be encoded using the other case.

    See more

    Declaration

    Swift

    public enum Header
  • The enum used to represent the response from a call to the Service and also in the implementation of a HTTPAdapter handling HTTP requests.

    See more

    Declaration

    Swift

    public enum HTTPResult<Result>
  • A phantom-type used to indicate the type of response from a path encoded in a Path or ChildPath. In this case, a collection of Resource.

    Declaration

    Swift

    public enum CollectionPath
  • A phantom-type used to indicate the type of response from a path encoded in a Path or ChildPath. In this case, a single Resource.

    Declaration

    Swift

    public enum SingularPath
  • GET

    A phantom-type used to indicate the HTTP method associated with a Path or ChildPath.

    Declaration

    Swift

    public enum GET
  • A phantom-type used to indicate the HTTP method associated with a Path or ChildPath.

    Declaration

    Swift

    public enum POST
  • PUT

    A phantom-type used to indicate the HTTP method associated with a Path or ChildPath.

    Declaration

    Swift

    public enum PUT
  • A phantom-type used to indicate the HTTP method associated with a Path or ChildPath.

    Declaration

    Swift

    public enum PATCH
  • A phantom-type used to indicate the HTTP method associated with a Path or ChildPath.

    Declaration

    Swift

    public enum DELETE
  • The response value passed back to handlers calling the Service. It encodes the success or failure of a request.

    See more

    Declaration

    Swift

    public enum Response<R: Resource, P, M, Payload>