ResponseSerializerType

public protocol ResponseSerializerType

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

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

    Declaration

    Swift

    var serializeResponse: (NSURLRequest?, NSHTTPURLResponse?, NSData?, NSError?) -> Result<SerializedObject, ErrorObject> { get }
  • The type of error to be created by this ResponseSerializer if serialization fails.

    Declaration

    Swift

    associatedtype ErrorObject: ErrorType
  • The type of serialized object to be created by this ResponseSerializerType.

    Declaration

    Swift

    associatedtype SerializedObject