Protocols

The following protocols are available globally.

  • This protocol should be inhereted by the Environment enum.

    See more

    Declaration

    Swift

    public protocol EnvironmentProtocol
  • Undocumented

    See more

    Declaration

    Swift

    public protocol TransformerProtocol : NSObject
  • Use this protocol to define repositories as enums.

    See more

    Declaration

    Swift

    public protocol EndpointProtocol
  • Use this protocol to create interceptors that can be passed to Configuration instances. Every class which implements this protocol will intercept between request completion and callbacks.

    See more

    Declaration

    Swift

    public protocol InterceptorProtocol
  • This protocol is used to register a middleware in order to modify body and headers of a request. (e.g. it can be used with Crypto Swift library to encrypt or decrypt the data.

    See more

    Declaration

    Swift

    public protocol RequestMiddlewareProtocol