| 262 | void sendText(httpd_req_t *req, const char *type, const String &body) { sendText(req, 200, type, body); } |
| 263 | |
| 264 | void redirectTo(httpd_req_t *req, const String &location) { |
| 265 | httpd_resp_set_status(req, "302 Found"); |
| 266 | httpd_resp_set_hdr(req, "Location", location.c_str()); |
| 267 | httpd_resp_set_hdr(req, "Access-Control-Allow-Origin", "*"); |
| 268 | httpd_resp_send(req, nullptr, 0); |
| 269 | } |
| 270 | |
| 271 | void serveWebUIFile( |
| 272 | httpd_req_t *req, const char *contentType, bool gzip, const uint8_t *originalFile, |
no outgoing calls
no test coverage detected