MCPcopy Create free account
hub / github.com/ArduPilot/ArduRemoteID / canHandle

Method canHandle

RemoteIDModule/webinterface.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19class ROMFS_Handler : public RequestHandler
20{
21 bool canHandle(HTTPMethod method, String uri) {
22 if (uri == "/") {
23 uri = "/index.html";
24 }
25 uri = "web" + uri;
26 if (ROMFS::exists(uri.c_str())) {
27 return true;
28 }
29 return false;
30 }
31
32 bool handle(WebServer& server, HTTPMethod requestMethod, String requestUri) {
33 if (requestUri == "/") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected