Static
Last updated
Serve static web-app files from the ESP32 filesystem
Wildcard handler that maps any GET request to a file on the ESP32's VFS filesystem (SPIFFS/LittleFS). Requests to / are redirected to /index.html. Supported MIME types: text/html, application/javascript, text/css, image/png, image/x-icon, text/xml (SVG).
Relative path to the static file, e.g. index.html, app.js, style.css. A bare / serves index.html.
File contents with appropriate Content-Type header
File not found or read error on the VFS
Last updated
GET /{path} HTTP/1.1
Host: 192.168.2.1
Accept: */*
text