Protocols
The following protocols are available globally.
-
A type used to define how a set of parameters are applied to a
See moreURLRequest
.Declaration
Swift
public protocol ParameterEncoding
-
A type that can inspect and optionally adapt a
See moreURLRequest
in some manner if necessary.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 moreDeclaration
Swift
public protocol RequestRetrier
-
The type in which all data response serializers must conform to in order to serialize a response.
See moreDeclaration
Swift
public protocol DataResponseSerializerProtocol
-
The type in which all download response serializers must conform to in order to serialize a response.
See moreDeclaration
Swift
public protocol DownloadResponseSerializerProtocol
-
Types adopting the
See moreURLConvertible
protocol can be used to construct URLs, which are then used to construct URL requests.Declaration
Swift
public protocol URLConvertible
-
Types adopting the
See moreURLRequestConvertible
protocol can be used to construct URL requests.Declaration
Swift
public protocol URLRequestConvertible