#pragma once #include #include #include "esp_err.h" #include "esp_http_server.h" // Register /, /audio, /static/* and /favicon.ico. Files come from the web UI blob embedded in the // firmware (gzipped, sent with Content-Encoding: gzip). esp_err_t web_register(httpd_handle_t server); // Send one of the top-level pages (e.g. "settings.html") esp_err_t web_send_page(httpd_req_t *req, const char *name); // A file in the embedded blob (gzipped, except patterns/*.py which are stored as they are) bool web_file(const char *path, const uint8_t **data, uint32_t *len); // Call fn with the rest of every name in the blob that starts with prefix void web_each(const char *prefix, void (*fn)(const char *name, void *ctx), void *ctx);