Inherits from AFHTTPResponseSerializer : NSObject
Declared in AFURLResponseSerialization.h

Overview

AFCompoundSerializer is a subclass of AFHTTPResponseSerializer that delegates the response serialization to the first AFHTTPResponseSerializer object that returns an object for responseObjectForResponse:data:error:, falling back on the default behavior of AFHTTPResponseSerializer. This is useful for supporting multiple potential types and structures of server responses with a single serializer.

Tasks

Properties

responseSerializers

@property (readonly, nonatomic, copy) NSArray *responseSerializers
Discussion

The component response serializers.

Declared In

AFURLResponseSerialization.h

Class Methods

compoundSerializerWithResponseSerializers:

+ (instancetype)compoundSerializerWithResponseSerializers:(NSArray *)responseSerializers
Discussion

Creates and returns a compound serializer comprised of the specified response serializers.

Warning: Each response serializer specified must be a subclass of AFHTTPResponseSerializer, and response to -validateResponse:data:error:.

Declared In

AFURLResponseSerialization.h