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

Method do_DELETE

examples/http_command/http_command_server.py:106–114  ·  view source on GitHub ↗

Handle DELETE requests

(self)

Source from the content-addressed store, hash-verified

104 self.send_error(404, "Not Found")
105
106 def do_DELETE(self):
107 """Handle DELETE requests"""
108 parsed_path = urlparse(self.path)
109 path = parsed_path.path
110
111 if path.startswith('/api/v1/cleanup'):
112 self.handle_cleanup()
113 else:
114 self.send_error(404, "Not Found")
115
116 def handle_status(self):
117 """Respond to /api/status with temperature and humidity"""

Callers

nothing calls this directly

Calls 1

handle_cleanupMethod · 0.95

Tested by

no test coverage detected