mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-20 13:03:28 +02:00
c899a33d1a
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
18 lines
519 B
C++
18 lines
519 B
C++
#pragma once
|
|
#ifdef USE_ESP_IDF
|
|
|
|
#include <esp_http_server.h>
|
|
#include "esphome/core/helpers.h"
|
|
|
|
namespace esphome {
|
|
namespace web_server_idf {
|
|
|
|
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 std::string &query_url, const std::string &key);
|
|
|
|
} // namespace web_server_idf
|
|
} // namespace esphome
|
|
#endif // USE_ESP_IDF
|