MCPcopy
hub / github.com/mitmproxy/mitmproxy / kill

Function kill

test/mitmproxy/proxy/layers/http/test_http2.py:1017–1019  ·  view source on GitHub ↗
(flow: HTTPFlow)

Source from the content-addressed store, hash-verified

1015 req_headers_hook_1 = http.HttpRequestHeadersHook(flow1)
1016
1017 def kill(flow: HTTPFlow):
1018 # Can't use flow.kill() here because that currently still depends on a reply object.
1019 flow.error = Error(Error.KILLED_MESSAGE)
1020
1021 server = Placeholder(Server)
1022 data_req1 = Placeholder(bytes)

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…