DataResponseSerializerProtocol

public protocol DataResponseSerializerProtocol

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

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

    Declaration

    Swift

    associatedtype SerializedObject
  • A closure used by response handlers that takes a request, response, data and error and returns a result.

    Declaration

    Swift

    var serializeResponse: (URLRequest?, HTTPURLResponse?, Data?, Error?) -> Result<SerializedObject> { get }