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

HTTP session configuration. More...

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

Data Fields

struct net_sockaddr_storage server_addr
 Server address.
net_socklen_t addrlen
 Server address length.
const char * host
 Server host name, IPv4 literal or bracketed IPv6 literal, without a port, used for the :authority pseudo-header (HTTP/2) and the Host header (HTTP/1.1).
bool async
 Whether session should be synchronous or asynchronous.

Detailed Description

HTTP session configuration.

Field Documentation

◆ addrlen

net_socklen_t http_client_session_config::addrlen

Server address length.

◆ async

bool http_client_session_config::async

Whether session should be synchronous or asynchronous.

◆ host

const char* http_client_session_config::host

Server host name, IPv4 literal or bracketed IPv6 literal, without a port, used for the :authority pseudo-header (HTTP/2) and the Host header (HTTP/1.1).

The port is taken from the server address. Leave NULL to use the server address literal instead. Must remain valid for the lifetime of the session.

◆ server_addr

struct net_sockaddr_storage http_client_session_config::server_addr

Server address.


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