DownloadResponseSerializerProtocol
public protocol DownloadResponseSerializerProtocol<SerializedObject> : Sendable
The type to which all download response serializers must conform in order to serialize a response.
-
The type of serialized object to be created.
Declaration
Swift
associatedtype SerializedObject : Sendable -
Serialize the downloaded response
Datafrom disk into the provided type.Throws
Any
Errorproduced during serialization.Declaration
Swift
func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: (any Error)?) throws -> SerializedObjectParameters
requestURLRequestwhich was used to perform the request, if any.responseHTTPURLResponsereceived from the server, if any.fileURLFile
URLto which the response data was downloaded.errorErrorproduced by Alamofire or the underlyingURLSessionduring the request.Return Value
The
SerializedObject.
-
urlExtension methodProvides a
URLResponseSerializerinstance.Declaration
Swift
public static var url: URLResponseSerializer { get }
View on GitHub
Install in Dash