DataResponseSerializerProtocol
public protocol DataResponseSerializerProtocol<SerializedObject> : Sendable
The type to which all data 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 response
Datainto the provided type.Throws
Any
Errorproduced during serialization.Declaration
Swift
func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: (any Error)?) throws -> SerializedObjectParameters
requestURLRequestwhich was used to perform the request, if any.responseHTTPURLResponsereceived from the server, if any.dataDatareturned from the server, if any.errorErrorproduced by Alamofire or the underlyingURLSessionduring the request.Return Value
The
SerializedObject.
View on GitHub
Install in Dash