Protocols

The following protocols are available globally.

  • Protocol outlining the lifetime events inside Alamofire. It includes both events received from the various URLSession delegate protocols as well as various events from the lifetime of Request and its subclasses.

    See more

    Declaration

    Swift

    public protocol EventMonitor
  • A type that can encode any Encodable type into a URLRequest.

    See more

    Declaration

    Swift

    public protocol ParameterEncoder
  • A type used to define how a set of parameters are applied to a URLRequest.

    See more

    Declaration

    Swift

    public protocol ParameterEncoding
  • A type that can inspect and optionally adapt a URLRequest in some manner if necessary.

    See more

    Declaration

    Swift

    public protocol RequestAdapter
  • A type that determines whether a request should be retried after being executed by the specified session manager and encountering an error.

    See more

    Declaration

    Swift

    public protocol RequestRetrier
  • Any type which can decode Data.

    See more

    Declaration

    Swift

    public protocol DataDecoder
  • A protocol describing the API used to evaluate server trusts.

    See more

    Declaration

    Swift

    public protocol ServerTrustEvaluating
  • Types adopting the URLConvertible protocol can be used to construct URLs, which can then be used to construct URLRequests.

    See more

    Declaration

    Swift

    public protocol URLConvertible
  • Types adopting the URLRequestConvertible protocol can be used to safely construct URLRequests.

    See more

    Declaration

    Swift

    public protocol URLRequestConvertible