HttpMessage Interface

public interface HttpMessage

An HTTPS message. An HTTPS message is distinguished from a plain IoT Hub message by its property names, which are prefixed with 'iothub-app-'; and by the explicit specification of a content-type.

Method Summary

Modifier and Type Method and Description
byte [] getBody()

Gets the message body.

String getContentType()

Gets the content type string.

Method Details

getBody

public byte [] getBody()

Gets the message body.

Returns:

The message body.

getContentType

public String getContentType()

Gets the content type string.

Returns:

The message content-type.

Applies to