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

Function responseheaders

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

Source from the content-addressed store, hash-verified

108
109
110def responseheaders(flow):
111 if isinstance(flow.request.stream, StreamSaver):
112 flow.request.stream.done()
113 if ctx.options.save_streamed_data and flow.response.stream:
114 flow.response.stream = StreamSaver(flow, "rsp")
115
116
117def response(flow):

Callers

nothing calls this directly

Calls 2

StreamSaverClass · 0.85
doneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…