ESPHome  2022.6.2
Data Structures | Enumerations | Functions | Variables
esphome::web_server Namespace Reference

Data Structures

class  ListEntitiesIterator
 
struct  UrlMatch
 Internal helper struct that is used to parse incoming URLs. More...
 
class  WebServer
 This class allows users to create a web server with their ESP nodes. More...
 

Enumerations

enum  JsonDetail { DETAIL_ALL, DETAIL_STATE }
 

Functions

void write_row (AsyncResponseStream *stream, EntityBase *obj, const std::string &klass, const std::string &action, const std::function< void(AsyncResponseStream &stream, EntityBase *obj)> &action_func=nullptr)
 
UrlMatch match_url (const std::string &url, bool only_domain=false)
 

Variables

const uint8_t INDEX_GZ [] PROGMEM
 

Enumeration Type Documentation

◆ JsonDetail

Enumerator
DETAIL_ALL 
DETAIL_STATE 

Definition at line 24 of file web_server.h.

Function Documentation

◆ match_url()

UrlMatch esphome::web_server::match_url ( const std::string &  url,
bool  only_domain = false 
)

Definition at line 60 of file web_server.cpp.

◆ write_row()

void esphome::web_server::write_row ( AsyncResponseStream *  stream,
EntityBase obj,
const std::string &  klass,
const std::string &  action,
const std::function< void(AsyncResponseStream &stream, EntityBase *obj)> &  action_func = nullptr 
)

Definition at line 38 of file web_server.cpp.

Variable Documentation

◆ PROGMEM

const uint8_t INDEX_GZ [] esphome::web_server::PROGMEM

Definition at line 8 of file server_index.h.