ESPHome  2024.5.0
utils.h
Go to the documentation of this file.
1 #pragma once
2 #ifdef USE_ESP_IDF
3 
4 #include <esp_http_server.h>
5 #include "esphome/core/helpers.h"
6 
7 namespace esphome {
8 namespace web_server_idf {
9 
10 bool request_has_header(httpd_req_t *req, const char *name);
11 optional<std::string> request_get_header(httpd_req_t *req, const char *name);
12 optional<std::string> request_get_url_query(httpd_req_t *req);
13 optional<std::string> query_key_value(const std::string &query_url, const std::string &key);
14 
15 } // namespace web_server_idf
16 } // namespace esphome
17 #endif // USE_ESP_IDF
const char * name
Definition: stm32flash.h:78
optional< std::string > request_get_header(httpd_req_t *req, const char *name)
Definition: utils.cpp:37
bool request_has_header(httpd_req_t *req, const char *name)
Definition: utils.cpp:35
optional< std::string > query_key_value(const std::string &query_url, const std::string &key)
Definition: utils.cpp:72
optional< std::string > request_get_url_query(httpd_req_t *req)
Definition: utils.cpp:54
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7