|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
HTTP session context. More...
#include <zephyr/net/http/client_multiprotocol.h>
Data Fields | |
| enum http_client_session_state | state |
| HTTP session state. | |
| struct net_sockaddr_storage | server_addr |
| Server address. | |
| net_socklen_t | addrlen |
| Server address length. | |
| const char * | host |
| Server host name, NULL if not configured. | |
| bool | async |
| Whether session is synchronous or asynchronous. | |
| bool | close_pending |
| Whether the transport of the ended session is still to be closed, by the thread that ended it once it dropped the client lock, or by the sender still on it. | |
| struct http_client_stream | streams [HTTP_CLIENT_MAX_STREAMS] |
| HTTP streams for this session. | |
| uint8_t | rx_buf [HTTP_CLIENT_RX_BUFFER_SIZE] |
| Receive buffer used to buffer incoming data from the transport. | |
| size_t | rx_data_len |
| Number of valid bytes currently stored in rx_buf. | |
| void * | rx_stream |
| Transport stream the data in rx_buf came from. | |
| uint8_t | tx_buf [HTTP_CLIENT_TX_BUFFER_SIZE] |
| Transmit buffer used when sending HTTP frames. | |
| union { | |
| struct http2_client_parser http2 | |
| HTTP/2 parser context. More... | |
| } | parser |
| Protocol-specific incremental parser context. | |
HTTP session context.
| net_socklen_t http_client_session::addrlen |
Server address length.
| bool http_client_session::async |
Whether session is synchronous or asynchronous.
| bool http_client_session::close_pending |
Whether the transport of the ended session is still to be closed, by the thread that ended it once it dropped the client lock, or by the sender still on it.
Nothing is received from it any more.
| const char* http_client_session::host |
Server host name, NULL if not configured.
| struct http2_client_parser http_client_session::http2 |
HTTP/2 parser context.
| union { ... } http_client_session::parser |
Protocol-specific incremental parser context.
| uint8_t http_client_session::rx_buf[HTTP_CLIENT_RX_BUFFER_SIZE] |
Receive buffer used to buffer incoming data from the transport.
| size_t http_client_session::rx_data_len |
Number of valid bytes currently stored in rx_buf.
| void* http_client_session::rx_stream |
Transport stream the data in rx_buf came from.
| struct net_sockaddr_storage http_client_session::server_addr |
Server address.
| enum http_client_session_state http_client_session::state |
HTTP session state.
| struct http_client_stream http_client_session::streams[HTTP_CLIENT_MAX_STREAMS] |
HTTP streams for this session.
| uint8_t http_client_session::tx_buf[HTTP_CLIENT_TX_BUFFER_SIZE] |
Transmit buffer used when sending HTTP frames.