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

Method response

mitmproxy/addons/save.py:180–184  ·  view source on GitHub ↗
(self, flow: http.HTTPFlow)

Source from the content-addressed store, hash-verified

178 self.active_flows.add(flow)
179
180 def response(self, flow: http.HTTPFlow):
181 # websocket flows will receive a websocket_end,
182 # we don't want to persist them here already
183 if flow.websocket is None:
184 self.save_flow(flow)
185
186 def error(self, flow: http.HTTPFlow):
187 self.response(flow)

Callers 4

test_simpleFunction · 0.95
test_rotate_streamFunction · 0.95
test_disk_fullFunction · 0.95
errorMethod · 0.95

Calls 1

save_flowMethod · 0.95

Tested by 3

test_simpleFunction · 0.76
test_rotate_streamFunction · 0.76
test_disk_fullFunction · 0.76