contentType (property)

The content type of the outgoing message.

Syntax

@property (nonatomic,readwrite,assign,getter=contentType,setter=setContentType:) NSString* contentType;
- (NSString*)contentType;
- (void)setContentType:(NSString*)newContentType;
public var contentType: String {
  get {...}
set {...} }

Default Value

"text/plain"

Remarks

This property is used to specify the content type (MIME type) for outgoing messages sent using SendMessage. The default value is text/plain, which should be sufficient is most cases.

Note that this property is ignored for messages sent using SendData, as such messages do not have a content-type header added to them. The absence of a content-type header indicates to the server that the data should be treated as a binary blob.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 iOS Edition - Version 20.0 [Build 8265]