LCPropertyListRequestSerializer
Objective-C
@interface LCPropertyListRequestSerializer : LCHTTPRequestSerializer
Swift
class LCPropertyListRequestSerializer : LCHTTPRequestSerializer
LCPropertyListRequestSerializer is a subclass of LCHTTPRequestSerializer that encodes parameters as JSON using NSPropertyListSerializer, setting the Content-Type of the encoded request to application/x-plist.
-
The property list format. Possible values are described in “NSPropertyListFormat”.
Declaration
Objective-C
@property (nonatomic) NSPropertyListFormat format;Swift
var format: PropertyListSerialization.PropertyListFormat { get set } -
Warning
ThewriteOptionsproperty is currently unused.Declaration
Objective-C
@property (nonatomic) NSPropertyListWriteOptions writeOptions;Swift
var writeOptions: UInt { get set } -
Creates and returns a property list serializer with a specified format, read options, and write options.
Warning
The
writeOptionsproperty is currently unused.Declaration
Objective-C
+ (nonnull instancetype)serializerWithFormat:(NSPropertyListFormat)format writeOptions: (NSPropertyListWriteOptions)writeOptions;Swift
convenience init(format: PropertyListSerialization.PropertyListFormat, writeOptions: UInt)Parameters
formatThe property list format.
writeOptionsThe property list write options.
View on GitHub
Install in Dash
LCPropertyListRequestSerializer Class Reference