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

Function readParams

src/webInterface.cpp:238–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238WebParamMap readParams(httpd_req_t *req) {
239 WebParamMap params;
240 String body;
241 if (!receiveBody(req, body)) return params;
242 String contentType = headerValue(req, "Content-Type");
243 if (contentType.indexOf("multipart/form-data") >= 0) parseMultipartFields(body, contentType, params);
244 else parseUrlEncoded(body, params);
245 return params;
246}
247
248void sendText(httpd_req_t *req, int status, const char *type, const String &body) {
249 httpd_resp_set_status(

Callers 4

loginHandlerFunction · 0.85
updateFromSdHandlerFunction · 0.85
renameHandlerFunction · 0.85
otaHandlerFunction · 0.85

Calls 4

receiveBodyFunction · 0.85
headerValueFunction · 0.85
parseMultipartFieldsFunction · 0.85
parseUrlEncodedFunction · 0.85

Tested by

no test coverage detected