HttpContent
Description
The HttpContent object represents the content of a HTTP request or response which is sent to or received from a HTTP server.
- › Inherits:
Overview
Properties
Methods
Signals
Enumerations
Properties
data
This property holds the actual data to send or which has been received. The data type depends on the format specified through the type property. See the HttpContent.Type enumeration for details.
- › Type:
Variant
- › Signal:
dataChanged()
- › Attributes:
Writable
type
This property holds the type specifying in which format to send or receive data.
- › Type:
- › Default:
- › Signal:
typeChanged()
- › Attributes:
Writable
Enumerations
Type
This enumeration describes the type specifying in which format to send or receive data.
Name |
Value |
Description |
|---|---|---|
|
|
|
|
|
Send and receive data as plaintext. |
|
|
Send and receive data as raw bytes which can be accessed as an |
|
|
Send and receive data as JSON objects. |
Example
See HttpHeader example on how to use HttpContent.