ESPHome 2025.5.0
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1#pragma once
2#ifdef USE_ESP_IDF
3
4#include <esp_http_server.h>
6
7namespace esphome {
8namespace web_server_idf {
9
10bool request_has_header(httpd_req_t *req, const char *name);
11optional<std::string> request_get_header(httpd_req_t *req, const char *name);
12optional<std::string> request_get_url_query(httpd_req_t *req);
13optional<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
optional< std::string > request_get_url_query(httpd_req_t *req)
Definition utils.cpp:54
optional< std::string > request_get_header(httpd_req_t *req, const char *name)
Definition utils.cpp:37
optional< std::string > query_key_value(const std::string &query_url, const std::string &key)
Definition utils.cpp:72
bool request_has_header(httpd_req_t *req, const char *name)
Definition utils.cpp:35
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7