MCPcopy Create free account
hub / github.com/bdring/FluidNC / acceptsEncoding

Method acceptsEncoding

FluidNC/src/WebUI/WebDAV.cpp:226–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226bool WebDAV::acceptsEncoding(AsyncWebServerRequest* request, const char* encoding) {
227 if (request->hasHeader("Accept-Encoding")) {
228 auto encodings = std::string(request->getHeader("Accept-Encoding")->value().c_str());
229 return encodings.find(encoding) != std::string::npos;
230 }
231 return false;
232}
233
234bool WebDAV::acceptsType(AsyncWebServerRequest* request, const char* type) {
235 if (request->hasHeader(T_ACCEPT)) {

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
valueMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected