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

Function error

examples/contrib/save_streamed_data.py:122–126  ·  view source on GitHub ↗
(flow)

Source from the content-addressed store, hash-verified

120
121
122def error(flow):
123 if flow.request and isinstance(flow.request.stream, StreamSaver):
124 flow.request.stream.done()
125 if flow.response and isinstance(flow.response.stream, StreamSaver):
126 flow.response.stream.done()

Callers

nothing calls this directly

Calls 1

doneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…