Protocols

The following protocols are available globally.

  • This protocol should be inhereted by the Environment enum.

    See more

    Declaration

    Swift

    public protocol EnvironmentProtocol
  • 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
  • Use this protocol to define routers as enums.

    See more

    Declaration

    Swift

    public protocol RouteProtocol