diff --git a/mitmproxy/web/app.py b/mitmproxy/web/app.py index dce85df38..2ba97b8d8 100644 --- a/mitmproxy/web/app.py +++ b/mitmproxy/web/app.py @@ -161,6 +161,7 @@ class Flows(RequestHandler): data=[_strip_content(f.get_state()) for f in self.state.flows] )) + class DumpFlows(RequestHandler): def get(self): self.set_header("Content-Disposition", "attachment; filename=flows") @@ -182,6 +183,7 @@ class DumpFlows(RequestHandler): self.state.load_flows(FlowReader(bio).stream()) bio.close() + class ClearAll(RequestHandler): def post(self):