|
Link Kit C-SDK
4.0.0
|
SDK收到HTTP报文, 传递给用户数据回调函数时, 对报文内容的描述 更多...
#include <aiot_http_api.h>
Public 属性 | |
| aiot_http_recv_type_t | type |
| HTTP 消息类型, 更多信息请参考 aiot_http_recv_type_t. 更多... | |
| union { | |
| struct { | |
| uint32_t code | |
| HTTP Status Code. 更多... | |
| } status_code | |
| HTTP 消息类型为 AIOT_HTTPRECV_STATUS_CODE 时的数据 更多... | |
| struct { | |
| char * key | |
| 单行 HTTP Header 的 key 更多... | |
| char * value | |
| 单行 HTTP Header 的 value 更多... | |
| } header | |
| HTTP 消息类型为 AIOT_HTTPRECV_HEADER 时的数据 更多... | |
| struct { | |
| uint8_t * buffer | |
| HTTP Body 的内容 更多... | |
| uint32_t len | |
| HTTP Body 的长度 更多... | |
| } body | |
| HTTP 消息类型为 AIOT_HTTPRECV_BODY 时的数据 更多... | |
| } | data |
SDK收到HTTP报文, 传递给用户数据回调函数时, 对报文内容的描述
| aiot_http_recv_type_t aiot_http_recv_t::type |
HTTP 消息类型, 更多信息请参考 aiot_http_recv_type_t.
| uint32_t aiot_http_recv_t::code |
HTTP Status Code.
| struct { ... } aiot_http_recv_t::status_code |
HTTP 消息类型为 AIOT_HTTPRECV_STATUS_CODE 时的数据
| char* aiot_http_recv_t::key |
单行 HTTP Header 的 key
| char* aiot_http_recv_t::value |
单行 HTTP Header 的 value
| struct { ... } aiot_http_recv_t::header |
HTTP 消息类型为 AIOT_HTTPRECV_HEADER 时的数据
| uint8_t* aiot_http_recv_t::buffer |
HTTP Body 的内容
| uint32_t aiot_http_recv_t::len |
HTTP Body 的长度
| struct { ... } aiot_http_recv_t::body |
HTTP 消息类型为 AIOT_HTTPRECV_BODY 时的数据
| union { ... } aiot_http_recv_t::data |
1.8.11