Protocols

The following protocols are available globally.

  • Protocol for anything that can be converted into a standart URLRequest

    See more

    Declaration

    Swift

    public protocol URLRequestConvertible

    Parameters

    baseURL

    An optional baseURL which passed by the APIClient to create the full url of the URLRequest

  • Protocol requirements for all types that can transform data into a specified type.

    This is used to especify how parse the response of a http request.

    See more

    Declaration

    Swift

    public protocol URLResponseCapable
  • An object that can hijack outgoing requests and return either the expected response type or an error bypassing the actual http request

    See more

    Declaration

    Swift

    public protocol ClientHijacker