MCPcopy Create free account
hub / github.com/SmingHub/Sming / setFileMap

Method setFileMap

Sming/Libraries/MultipartParser/src/HttpMultipartResource.cpp:15–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "HttpMultipartResource.h"
14
15int HttpMultipartResource::setFileMap(HttpServerConnection&, HttpRequest& request, HttpResponse& response)
16{
17 String contentType = request.headers[HTTP_HEADER_CONTENT_TYPE];
18 String mimeType = toString(MIME_FORM_MULTIPART);
19 if(!(request.method == HTTP_POST && contentType.startsWith(mimeType))) {
20 return 0;
21 }
22
23 mapper(request.files);
24
25 return 0;
26}

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.50
startsWithMethod · 0.45

Tested by

no test coverage detected