MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / setOptions

Method setOptions

Libraries/Http/HttpAsyncFileServer.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69void HttpAsyncFileServer::setUseAsyncFileSend(bool value) { useAsyncFileSend = value; }
70
71Result HttpAsyncFileServer::setOptions(const HttpAsyncFileServerOptions& newOptions)
72{
73 StringSpan normalizedFallback;
74 SC_TRY(Internal::normalizeOptionFilePath(newOptions.spaFallbackPath, normalizedFallback));
75 (void)(normalizedFallback);
76 options = newOptions;
77 return Result(true);
78}
79
80Result HttpAsyncFileServer::handleRequest(HttpAsyncFileServer::Stream& stream, HttpConnection& connection)
81{

Callers 6

customMimeLookupMethod · 0.45
uploadPolicyMethod · 0.45
uploadsDisabledMethod · 0.45
httpFileServerTestMethod · 0.45
startMethod · 0.45

Calls 1

ResultClass · 0.50

Tested by 5

customMimeLookupMethod · 0.36
uploadPolicyMethod · 0.36
uploadsDisabledMethod · 0.36
httpFileServerTestMethod · 0.36