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

    The writeOptions property 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 writeOptions property is currently unused.

    Declaration

    Objective-C

    + (nonnull instancetype)serializerWithFormat:(NSPropertyListFormat)format
                                    writeOptions:
                                        (NSPropertyListWriteOptions)writeOptions;

    Swift

    convenience init(format: PropertyListSerialization.PropertyListFormat, writeOptions: UInt)

    Parameters

    format

    The property list format.

    writeOptions

    The property list write options.