Protocols
The following protocols are available globally.
-
A type that handles whether the data task should store the HTTP response in the cache.
See moreDeclaration
Swift
public protocol CachedResponseHandler
-
A type that can encode any
See moreEncodable
type into aURLRequest
.Declaration
Swift
public protocol ParameterEncoder
-
A type used to define how a set of parameters are applied to a
See moreURLRequest
.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 moreDeclaration
Swift
public protocol RedirectHandler
-
Protocol abstraction for
See moreRequest
‘s communication back to theSessionDelegate
.Declaration
Swift
public protocol RequestDelegate : AnyObject
-
Undocumented
See moreDeclaration
Swift
public protocol UploadableConvertible
-
Undocumented
Declaration
Swift
public protocol UploadConvertible : URLRequestConvertible, UploadableConvertible
-
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
-
A type that intercepts requests to potentially adapt and retry them.
See moreDeclaration
Swift
public protocol RequestInterceptor : RequestAdapter, RequestRetrier
-
The type to which all data response serializers must conform in order to serialize a response.
See moreDeclaration
Swift
public protocol DataResponseSerializerProtocol
-
The type to which all download response serializers must conform in order to serialize a response.
See moreDeclaration
Swift
public protocol DownloadResponseSerializerProtocol
-
A serializer that can handle both data and download responses.
See moreDeclaration
Swift
public protocol ResponseSerializer : DataResponseSerializerProtocol, DownloadResponseSerializerProtocol where Self.SerializedObject == Self.SerializedObject
-
A protocol for a type representing an empty response. Use
See moreT.emptyValue
to get an instance.Declaration
Swift
public protocol EmptyResponse
-
Any type which can decode
See moreData
.Declaration
Swift
public protocol DataDecoder
-
A protocol describing the API used to evaluate server trusts.
See moreDeclaration
Swift
public protocol ServerTrustEvaluating
-
Undocumented
See moreDeclaration
Swift
public protocol SessionStateProvider : AnyObject
-
Types adopting the
See moreURLConvertible
protocol can be used to constructURL
s, which can then be used to constructURLRequests
.Declaration
Swift
public protocol URLConvertible
-
Types adopting the
See moreURLRequestConvertible
protocol can be used to safely constructURLRequest
s.Declaration
Swift
public protocol URLRequestConvertible