Enumerations

The following enumerations are available globally.

  • Any error throwned by a APIClient

    Version

    1.0.0

    Date

    19/11/22

    Author

    Adamas
    See more

    Declaration

    Swift

    public enum APIError : Error
    extension APIError: Equatable
    extension APIError: LocalizedError
  • Standard HTTP status code error thrown by the server https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

    Version

    1.0.0

    Date

    19/11/22

    Author

    Adamas
    See more

    Declaration

    Swift

    public enum HTTPError : Int, Error
  • Generic network error thrown by URLSession

    Version

    1.0.0

    Date

    19/11/22

    Author

    Adamas
    See more

    Declaration

    Swift

    public enum NetworkError : Int, Error
  • The body type of a HTTP request

    Version

    1.0.0

    Date

    20/11/22

    Author

    Adamas
    See more

    Declaration

    Swift

    public enum ContentType : String, CaseIterable
  • Defines HTTP fields

    Version

    1.0.0

    Date

    20/11/22

    Author

    Adamas
    See more

    Declaration

    Swift

    public enum HeaderFieldType : String
  • The body sent along with a HTTP request

    Version

    1.0.0

    Date

    20/11/22

    Author

    Adamas
    See more

    Declaration

    Swift

    public enum RequestBody
  • The method of a HTTP request

    Version

    1.0.0

    Date

    20/11/22

    Author

    Adamas
    See more

    Declaration

    Swift

    public enum RequestMethod : String