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

Method acceptsType

FluidNC/src/WebUI/WebDAV.cpp:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234bool WebDAV::acceptsType(AsyncWebServerRequest* request, const char* type) {
235 if (request->hasHeader(T_ACCEPT)) {
236 auto types = std::string(request->getHeader(T_ACCEPT)->value().c_str());
237 return types.find(type) != std::string::npos;
238 }
239 return false;
240}
241
242void WebDAV::handlePropfind(const FluidPath& fpath, DavResource resource, AsyncWebServerRequest* request) {
243 // check depth header

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
valueMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected