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.
- Scratch Based Default Extensions
- Artificial Intelligence
- Innovative Extensions
- Machine Learning Environment
- Quarky
- Quarky Intellio I2C Communication
- Quarky Advance Sensors Extension
- Quarky Connect
- Display (Quarky)
- Quarky (Main)
- Robot (Quarky)
- Sensors (Quarky)
- Speaker (Quarky)
- Quarky Ultimate Robots
- Quarky Expansion Board
- Mars Rover
- Humanoid (Quarky)
- Quadruped (Quarky)
- IoT House (Quarky)
- Quarky Mecanum
- Quarky Robotic Arm
- Dabble
- Quarky Advance Line Following
