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

Function extractDispositionValue

src/webInterface.cpp:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205String extractDispositionValue(const String &headers, const char *name) {
206 String key = String(name) + "=\"";
207 int idx = headers.indexOf(key);
208 if (idx < 0) return "";
209 int start = idx + key.length();
210 int end = headers.indexOf('"', start);
211 if (end < 0) return "";
212 return headers.substring(start, end);
213}
214
215void parseMultipartFields(const String &body, const String &contentType, WebParamMap &params) {
216 String boundary = multipartBoundary(contentType);

Callers 2

parseMultipartFieldsFunction · 0.85
streamMultipartUploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected