zos_http_response_t Struct Reference
HTTP response struct used by zn_http_receive_response() More...
Data Fields | |
int | version |
The version of the HTTP response,. More... | |
int | code |
HTTP response code. | |
int | content_length |
The response body length. More... | |
char * | headers [HTTP_MAX_BASIC_HEADERS] |
'Basic' HTTP response headers, see zos_http_basic_header_t | |
zos_http_response_header_t * | header_list |
Linked list of additional response headers. More... | |
char * | buffer |
Allocated HTTP response headers buffer (system use only) | |
Detailed Description
HTTP response struct used by zn_http_receive_response()
- Note
- This does NOT include the response body
- Examples:
- basic/http_methods/http_get.c, and nxp/nfc3d/cloud_rest.c.
Field Documentation
int zos_http_response_t::content_length |
The response body length.
- Note
- -1 means the response body is chunked
- Examples:
- basic/http_methods/http_get.c.
zos_http_response_header_t* zos_http_response_t::header_list |
Linked list of additional response headers.
- Note
- Must set HTTP_RESPONSE_ALL_HEADERS flag to return additional headers
int zos_http_response_t::version |
The version of the HTTP response,.
- 0 = HTTP/1.0
- 1 = HTTP/1.1