Protocols

The following protocols are available globally.

  • Protocol describing the af extension points for Alamofire extended types.

    See more

    Declaration

    Swift

    public protocol AlamofireExtended
  • A type that handles whether the data task should store the HTTP response in the cache.

    See more

    Declaration

    Swift

    public protocol CachedResponseHandler
  • 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 handles how an HTTP redirect response from a remote server should be redirected to the new request.

    See more

    Declaration

    Swift

    public protocol RedirectHandler

Protocol Conformances

UploadRequest

Protocols

Empty

  • Protocol representing an empty response. Use T.emptyValue() to get an instance.

    See more

    Declaration

    Swift

    public protocol EmptyResponse

DataDecoder Protocol

  • Any type which can decode Data into a Decodable type.

    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