Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
http_client_ctx Struct Reference

Representation of an HTTP client connected to the server. More...

#include <zephyr/net/http/server.h>

Data Fields

size_t content_len
 Request content length.
enum http_method method
 Request method.
bool is_h3: 1
 Flag indicating this is an HTTP/3 (QUIC stream) client.
bool preface_sent: 1
 Flag indicating that HTTP2 preface was sent.
bool http1_headers_sent: 1
 Flag indicating that HTTP1 headers were sent.
bool has_upgrade_header: 1
 Flag indicating that upgrade header was present in the request.
bool http2_upgrade: 1
 Flag indicating HTTP/2 upgrade takes place.
bool websocket_upgrade: 1
 Flag indicating Websocket upgrade takes place.

Detailed Description

Representation of an HTTP client connected to the server.

Field Documentation

◆ content_len

size_t http_client_ctx::content_len

Request content length.

◆ has_upgrade_header

bool http_client_ctx::has_upgrade_header

Flag indicating that upgrade header was present in the request.

◆ http1_headers_sent

bool http_client_ctx::http1_headers_sent

Flag indicating that HTTP1 headers were sent.

◆ http2_upgrade

bool http_client_ctx::http2_upgrade

Flag indicating HTTP/2 upgrade takes place.

◆ is_h3

bool http_client_ctx::is_h3

Flag indicating this is an HTTP/3 (QUIC stream) client.

◆ method

enum http_method http_client_ctx::method

Request method.

◆ preface_sent

bool http_client_ctx::preface_sent

Flag indicating that HTTP2 preface was sent.

◆ websocket_upgrade

bool http_client_ctx::websocket_upgrade

Flag indicating Websocket upgrade takes place.


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