DownloadResponseSerializerProtocol

public protocol DownloadResponseSerializerProtocol

The type to which all download response serializers must conform in order to serialize a response.

  • The type of serialized object to be created by this DownloadResponseSerializerType.

    Declaration

    Swift

    associatedtype SerializedObject
  • The function used to serialize the downloaded data in response handlers.

    Default Implementation

    Declaration

    Swift

    func serializeDownload(request: URLRequest?, response: HTTPURLResponse?, fileURL: URL?, error: Error?) throws -> SerializedObject