ContentType Property

The content type of the outgoing message.

Object Oriented Interface

public function getContentType();
public function setContentType($value);

Procedural Interface

ipworksiot_stomp_get($res, 2 );
ipworksiot_stomp_set($res, 2, $value );

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.

This property is not available at design time.

Data Type

String

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