|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
HTTP stream context. More...
#include <zephyr/net/http/client_multiprotocol.h>
Data Fields | |
| bool | is_used |
| Whether the stream is in use. | |
| uint64_t | stream_id |
| Protocol stream identifier, as assigned by the protocol layer. | |
| void * | transport_stream |
| Transport stream carrying this stream, NULL on a single-stream transport. | |
| union { | |
| struct http2_client_stream http2 | |
| HTTP/2 stream state. More... | |
| } | proto |
| Protocol-specific stream state. | |
| uint8_t | headers_buf [HTTP_CLIENT_HEADERS_BUFFER_SIZE] |
| Buffer backing the response header array and strings delivered to the application. | |
| const struct http_client_request * | request |
| Request the stream carries, NULL when none. | |
| struct http_client_response | response |
| Response data associated with the stream. | |
| int64_t | timeout |
| Response timeout for the stream (absolute time in milliseconds). | |
| int | result |
| Result of the completed transaction (0, or a negative errno). | |
| bool | completed |
| Whether the transaction has completed. | |
| bool | sending |
| Whether the request is still being sent. | |
| k_tid_t | caller |
| Thread that took the stream in http_client_send_request(). | |
| bool | headers_received |
| Whether the headers of the final response were received. | |
| void * | user_data |
| User data. | |
HTTP stream context.
| k_tid_t http_client_stream::caller |
Thread that took the stream in http_client_send_request().
NULL once the request is on its way out on an asynchronous session; kept until the stream is released on a synchronous one.
| bool http_client_stream::completed |
Whether the transaction has completed.
| uint8_t http_client_stream::headers_buf[HTTP_CLIENT_HEADERS_BUFFER_SIZE] |
Buffer backing the response header array and strings delivered to the application.
Aligned so that a http_client_header array can be carved from its start.
| bool http_client_stream::headers_received |
Whether the headers of the final response were received.
| struct http2_client_stream http_client_stream::http2 |
HTTP/2 stream state.
| bool http_client_stream::is_used |
Whether the stream is in use.
| union { ... } http_client_stream::proto |
Protocol-specific stream state.
| const struct http_client_request* http_client_stream::request |
Request the stream carries, NULL when none.
| struct http_client_response http_client_stream::response |
Response data associated with the stream.
| int http_client_stream::result |
Result of the completed transaction (0, or a negative errno).
| bool http_client_stream::sending |
Whether the request is still being sent.
| uint64_t http_client_stream::stream_id |
Protocol stream identifier, as assigned by the protocol layer.
| int64_t http_client_stream::timeout |
Response timeout for the stream (absolute time in milliseconds).
| void* http_client_stream::transport_stream |
Transport stream carrying this stream, NULL on a single-stream transport.
| void* http_client_stream::user_data |
User data.