MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / redirectTo

Function redirectTo

src/webInterface.cpp:264–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262void sendText(httpd_req_t *req, const char *type, const String &body) { sendText(req, 200, type, body); }
263
264void 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
271void serveWebUIFile(
272 httpd_req_t *req, const char *contentType, bool gzip, const uint8_t *originalFile,

Callers 2

loginHandlerFunction · 0.85
fallbackHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected