ESPHome 2026.2.2
Loading...
Searching...
No Matches
esphome::web_server_idf Namespace Reference

Data Structures

class  AsyncEventSource
 
class  AsyncEventSourceResponse
 
class  AsyncResponseStream
 
class  AsyncWebHandler
 
class  AsyncWebParameter
 
class  AsyncWebServer
 
class  AsyncWebServerRequest
 
class  AsyncWebServerResponse
 
class  AsyncWebServerResponseContent
 
class  AsyncWebServerResponseEmpty
 
class  AsyncWebServerResponseProgmem
 
class  DefaultHeaders
 
struct  DeferredEvent
 
struct  HttpHeader
 
class  MultipartReader
 

Typedefs

using message_generator_t = std::string(esphome::web_server::WebServer *, void *)
 
using AsyncEventSourceClient = AsyncEventSourceResponse
 

Functions

bool str_startswith_case_insensitive (const char *str, size_t str_len, const char *prefix)
 
void extract_header_param (const char *header, size_t header_len, const char *param, std::string &out)
 
bool parse_multipart_boundary (const char *content_type, const char **boundary_start, size_t *boundary_len)
 
void str_trim (const char *str, size_t len, std::string &out)
 
size_t url_decode (char *str)
 Decode URL-encoded string in-place (e.g., %20 -> space, + -> space) Returns the new length of the decoded string.
 
bool request_has_header (httpd_req_t *req, const char *name)
 
optional< std::string > request_get_header (httpd_req_t *req, const char *name)
 
optional< std::string > request_get_url_query (httpd_req_t *req)
 
optional< std::string > query_key_value (const char *query_url, size_t query_len, const char *key)
 
bool str_ncmp_ci (const char *s1, const char *s2, size_t n)
 
const char * strcasestr_n (const char *haystack, size_t haystack_len, const char *needle)
 
optional< std::string > query_key_value (const std::string &query_url, const std::string &key)
 
bool char_equals_ci (char a, char b)
 

Typedef Documentation

◆ AsyncEventSourceClient

◆ message_generator_t

Definition at line 257 of file web_server_idf.h.

Function Documentation

◆ char_equals_ci()

bool esphome::web_server_idf::char_equals_ci ( char a,
char b )
inline

Definition at line 23 of file utils.h.

◆ extract_header_param()

void esphome::web_server_idf::extract_header_param ( const char * header,
size_t header_len,
const char * param,
std::string & out )

Definition at line 122 of file multipart.cpp.

◆ parse_multipart_boundary()

bool esphome::web_server_idf::parse_multipart_boundary ( const char * content_type,
const char ** boundary_start,
size_t * boundary_len )

Definition at line 195 of file multipart.cpp.

◆ query_key_value() [1/2]

optional< std::string > esphome::web_server_idf::query_key_value ( const char * query_url,
size_t query_len,
const char * key )

Definition at line 75 of file utils.cpp.

◆ query_key_value() [2/2]

optional< std::string > esphome::web_server_idf::query_key_value ( const std::string & query_url,
const std::string & key )
inline

Definition at line 18 of file utils.h.

◆ request_get_header()

optional< std::string > esphome::web_server_idf::request_get_header ( httpd_req_t * req,
const char * name )

Definition at line 40 of file utils.cpp.

◆ request_get_url_query()

optional< std::string > esphome::web_server_idf::request_get_url_query ( httpd_req_t * req)

Definition at line 57 of file utils.cpp.

◆ request_has_header()

bool esphome::web_server_idf::request_has_header ( httpd_req_t * req,
const char * name )

Definition at line 38 of file utils.cpp.

◆ str_ncmp_ci()

bool esphome::web_server_idf::str_ncmp_ci ( const char * s1,
const char * s2,
size_t n )

Definition at line 92 of file utils.cpp.

◆ str_startswith_case_insensitive()

bool esphome::web_server_idf::str_startswith_case_insensitive ( const char * str,
size_t str_len,
const char * prefix )

Definition at line 111 of file multipart.cpp.

◆ str_trim()

void esphome::web_server_idf::str_trim ( const char * str,
size_t len,
std::string & out )

Definition at line 252 of file multipart.cpp.

◆ strcasestr_n()

const char * esphome::web_server_idf::strcasestr_n ( const char * haystack,
size_t haystack_len,
const char * needle )

Definition at line 102 of file utils.cpp.

◆ url_decode()

size_t esphome::web_server_idf::url_decode ( char * str)

Decode URL-encoded string in-place (e.g., %20 -> space, + -> space) Returns the new length of the decoded string.

Definition at line 15 of file utils.cpp.