Protocols

The following protocols are available globally.

  • 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
  • The type in which all data response serializers must conform to in order to serialize a response.

    See more

    Declaration

    Swift

    public protocol DataResponseSerializerProtocol
  • The type in which all download response serializers must conform to in order to serialize a response.

    See more

    Declaration

    Swift

    public protocol DownloadResponseSerializerProtocol
  • Types adopting the URLConvertible protocol can be used to construct URLs, which are then used to construct URL requests.

    See more

    Declaration

    Swift

    public protocol URLConvertible
  • Types adopting the URLRequestConvertible protocol can be used to construct URL requests.

    See more

    Declaration

    Swift

    public protocol URLRequestConvertible