Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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.

Detailed Description

HTTP session context.

Field Documentation

◆ addrlen

net_socklen_t http_client_session::addrlen

Server address length.

◆ async

bool http_client_session::async

Whether session is synchronous or asynchronous.

◆ close_pending

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.

◆ host

const char* http_client_session::host

Server host name, NULL if not configured.

◆ http2

struct http2_client_parser http_client_session::http2

HTTP/2 parser context.

◆ [union]

union { ... } http_client_session::parser

Protocol-specific incremental parser context.

◆ rx_buf

uint8_t http_client_session::rx_buf[HTTP_CLIENT_RX_BUFFER_SIZE]

Receive buffer used to buffer incoming data from the transport.

◆ rx_data_len

size_t http_client_session::rx_data_len

Number of valid bytes currently stored in rx_buf.

◆ rx_stream

void* http_client_session::rx_stream

Transport stream the data in rx_buf came from.

◆ server_addr

struct net_sockaddr_storage http_client_session::server_addr

Server address.

◆ state

enum http_client_session_state http_client_session::state

HTTP session state.

◆ streams

struct http_client_stream http_client_session::streams[HTTP_CLIENT_MAX_STREAMS]

HTTP streams for this session.

◆ tx_buf

uint8_t http_client_session::tx_buf[HTTP_CLIENT_TX_BUFFER_SIZE]

Transmit buffer used when sending HTTP frames.


The documentation for this struct was generated from the following file: