MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / kill

Function kill

web/src/js/ducks/flows/_backend_actions.ts:19–27  ·  view source on GitHub ↗
(flows: Flow[])

Source from the content-addressed store, hash-verified

17}
18
19export function kill(flows: Flow[]) {
20 flows = flows.filter(canResumeOrKill);
21 return () =>
22 Promise.all(
23 flows.map((flow) =>
24 fetchApi(`/flows/${flow.id}/kill`, { method: "POST" }),
25 ),
26 );
27}
28
29export function killAll() {
30 return () => fetchApi("/flows/kill", { method: "POST" });

Callers

nothing calls this directly

Calls 3

fetchApiFunction · 0.90
filterMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…