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

Method post

mitmproxy/tools/web/app.py:530–535  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

528 self.write(bio.getvalue())
529
530 async def post(self):
531 self.view.clear()
532 bio = BytesIO(self.filecontents)
533 for f in io.FlowReader(bio).stream():
534 await self.master.load_flow(f)
535 bio.close()
536
537
538class ClearAll(RequestHandler):

Callers

nothing calls this directly

Calls 4

streamMethod · 0.80
clearMethod · 0.45
load_flowMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected