Protocols

The following protocols are available globally.

  • Protocol to define the opaque type returned from a request.

    See more

    Declaration

    Swift

    public protocol Cancellable
  • A protocol representing a minimal interface for a MoyaProvider. Used by the reactive provider extensions.

    See more

    Declaration

    Swift

    public protocol MoyaProviderType : AnyObject
  • A Moya Plugin receives callbacks to perform side effects wherever a request is sent or received.

    for example, a plugin may be used to - log network requests - hide and show a network activity indicator - inject additional information into a request

    See more

    Declaration

    Swift

    public protocol PluginType
  • Request type used by willSend plugin function.

    See more

    Declaration

    Swift

    public protocol RequestType