LCPropertyListResponseSerializer
Objective-C
@interface LCPropertyListResponseSerializer : LCHTTPResponseSerializer
Swift
class LCPropertyListResponseSerializer : LCHTTPResponseSerializer
LCPropertyListResponseSerializer
is a subclass of LCHTTPResponseSerializer
that validates and decodes XML responses as an NSXMLDocument
objects.
By default, LCPropertyListResponseSerializer
accepts the following MIME types:
application/x-plist
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
Swift
init()
-
The property list format. Possible values are described in “NSPropertyListFormat”.
Declaration
Objective-C
@property (nonatomic) NSPropertyListFormat format;
Swift
var format: PropertyListSerialization.PropertyListFormat { get set }
-
The property list reading options. Possible values are described in “NSPropertyListMutabilityOptions.”
Declaration
Objective-C
@property (nonatomic) NSPropertyListReadOptions readOptions;
Swift
var readOptions: PropertyListSerialization.ReadOptions { get set }
-
Creates and returns a property list serializer with a specified format, read options, and write options.
Declaration
Objective-C
+ (nonnull instancetype)serializerWithFormat:(NSPropertyListFormat)format readOptions: (NSPropertyListReadOptions)readOptions;
Swift
convenience init(format: PropertyListSerialization.PropertyListFormat, read readOptions: PropertyListSerialization.ReadOptions = [])
Parameters
format
The property list format.
readOptions
The property list reading options.