MCPcopy
hub / github.com/osrg/gobgp / do_GET

Method do_GET

tools/grpc/python/flowspec_mitigation.py:318–324  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

316 self._send_json(404, {"status": "not found"})
317
318 def do_GET(self):
319 if self.path == "/rules":
320 with _lock:
321 rules = dict(_active_rules)
322 self._send_json(200, {"rules": rules})
323 else:
324 self._send_json(404, {"status": "not found"})
325
326 def log_message(self, format, *args):
327 pass # Suppress default access logs

Callers

nothing calls this directly

Calls 1

_send_jsonMethod · 0.95

Tested by

no test coverage detected