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

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.

Detailed Description

HTTP stream context.

Field Documentation

◆ caller

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.

◆ completed

bool http_client_stream::completed

Whether the transaction has completed.

◆ headers_buf

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.

◆ headers_received

bool http_client_stream::headers_received

Whether the headers of the final response were received.

◆ http2

struct http2_client_stream http_client_stream::http2

HTTP/2 stream state.

◆ is_used

bool http_client_stream::is_used

Whether the stream is in use.

◆ [union]

union { ... } http_client_stream::proto

Protocol-specific stream state.

◆ request

const struct http_client_request* http_client_stream::request

Request the stream carries, NULL when none.

◆ response

struct http_client_response http_client_stream::response

Response data associated with the stream.

◆ result

int http_client_stream::result

Result of the completed transaction (0, or a negative errno).

◆ sending

bool http_client_stream::sending

Whether the request is still being sent.

◆ stream_id

uint64_t http_client_stream::stream_id

Protocol stream identifier, as assigned by the protocol layer.

◆ timeout

int64_t http_client_stream::timeout

Response timeout for the stream (absolute time in milliseconds).

◆ transport_stream

void* http_client_stream::transport_stream

Transport stream carrying this stream, NULL on a single-stream transport.

◆ user_data

void* http_client_stream::user_data

User data.


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