The function sets the body content type to the specified value.
Table of Contents
setcontenttype()
Function Definition: setcontenttype(type = "application/x-www-form-urlencoded")
- Python Library: Internet of Things (IoT)
- Library Import: iot = InternetOfThings()
- Mode: Stage Mode
Parameters
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
type | string | The type of content. | "application/x-www-form-urlencoded", "application/json", "text/plain" | "application/x-www-form-urlencoded" |
Description
Example
There are no examples documented for this article.