MCPcopy Create free account
hub / github.com/Tele-AI/Fluxon / do_GET

Method do_GET

fluxon_test_stack/gitops/gitops_lib.py:948–974  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

946 self._handle_index()
947 return
948 if parsed.path == "/run":
949 self._handle_run(parsed)
950 return
951 if parsed.path == "/log":
952 self._handle_log(parsed)
953 return
954 if parsed.path == "/step_log":
955 self._handle_step_log(parsed)
956 return
957 if parsed.path == "/api/run_state":
958 self._handle_run_state(parsed)
959 return
960 if parsed.path == "/api/log_chunk":
961 self._handle_api_log_chunk(parsed)
962 return
963 if parsed.path == "/rerun":
964 self._handle_rerun(parsed)
965 return
966 self._send_json(404, {"error": "not found"})
967
968 def do_POST(self) -> None: # noqa: N802
969 parsed = urlparse(self.path)
970 if parsed.path != "/rerun":
971 self._send_json(404, {"error": "not found"})
972 return
973
974 length = int(self.headers.get("Content-Length", "0") or 0)
975 body = self.rfile.read(length).decode("utf-8") if length > 0 else ""
976 target = None
977 if body:

Callers

nothing calls this directly

Calls 8

_send_jsonMethod · 0.95
_handle_indexMethod · 0.95
_handle_runMethod · 0.95
_handle_logMethod · 0.95
_handle_step_logMethod · 0.95
_handle_run_stateMethod · 0.95
_handle_api_log_chunkMethod · 0.95
_handle_rerunMethod · 0.95

Tested by

no test coverage detected