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

Function headerValue

src/webInterface.cpp:160–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160String headerValue(httpd_req_t *req, const char *name) {
161 size_t len = httpd_req_get_hdr_value_len(req, name);
162 if (!len) return "";
163 std::vector<char> value(len + 1);
164 if (httpd_req_get_hdr_value_str(req, name, value.data(), value.size()) != ESP_OK) return "";
165 return String(value.data());
166}
167
168String queryValue(httpd_req_t *req, const char *key) {
169 size_t len = httpd_req_get_url_query_len(req);

Callers 4

readParamsFunction · 0.85
checkUserWebAuthFunction · 0.85
streamMultipartUploadFunction · 0.85
logoutHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected