aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/web/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/web/app.py')
-rw-r--r--libmproxy/web/app.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/libmproxy/web/app.py b/libmproxy/web/app.py
index d5638c10..31cb3ef1 100644
--- a/libmproxy/web/app.py
+++ b/libmproxy/web/app.py
@@ -35,7 +35,13 @@ class WebSocketEventBroadcaster(tornado.websocket.WebSocketHandler):
class Flows(tornado.web.RequestHandler):
def get(self):
self.write(dict(
- flows=[f.get_state(short=True) for f in self.application.state.flows]
+ list=[f.get_state(short=True) for f in self.application.state.flows]
+ ))
+
+class Events(tornado.web.RequestHandler):
+ def get(self):
+ self.write(dict(
+ list=list(self.application.state.events)
))
@@ -54,6 +60,7 @@ class Application(tornado.web.Application):
handlers = [
(r"/", IndexHandler),
(r"/updates", ClientConnection),
+ (r"/events", Events),
(r"/flows", Flows),
(r"/flows/clear", FlowClear),
]