MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / kill

Function kill

test/mitmproxy/proxy/layers/http/test_http3.py:976–978  ·  view source on GitHub ↗
(flow: HTTPFlow)

Source from the content-addressed store, hash-verified

974 headers2 = [*example_request_headers, (b"x-order", b"2")]
975
976 def kill(flow: HTTPFlow):
977 # Can't use flow.kill() here because that currently still depends on a reply object.
978 flow.error = Error(Error.KILLED_MESSAGE)
979
980 assert (
981 playbook

Callers

nothing calls this directly

Calls 1

ErrorClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…