diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-04-03 11:10:25 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-04-03 11:10:25 +1200 |
commit | 61fab03b24bdb53d203eb7fb68ba891874d11114 (patch) | |
tree | 17c45c32905802d9da9ac6bb81c3239a8b5c264d /libmproxy/console/__init__.py | |
parent | f526e5fa125339e8f3a16c1590c1607f45862b47 (diff) | |
download | mitmproxy-61fab03b24bdb53d203eb7fb68ba891874d11114.tar.gz mitmproxy-61fab03b24bdb53d203eb7fb68ba891874d11114.tar.bz2 mitmproxy-61fab03b24bdb53d203eb7fb68ba891874d11114.zip |
Add a details page, available from a flow view with the 'X' shortcut
At the moment, this shows the upstream SSL certificate details. More
fine-grained detail that doesn't fit in the flow view itself will be added.
Diffstat (limited to 'libmproxy/console/__init__.py')
-rw-r--r-- | libmproxy/console/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py index a0a743b5..a6355160 100644 --- a/libmproxy/console/__init__.py +++ b/libmproxy/console/__init__.py @@ -17,7 +17,7 @@ import mailcap, mimetypes, tempfile, os, subprocess, glob, time, shlex import os.path, sys, weakref import urwid from .. import controller, utils, flow -import flowlist, flowview, help, common, grideditor, palettes, contentview +import flowlist, flowview, help, common, grideditor, palettes, contentview, flowdetailview EVENTLOG_SIZE = 500 @@ -547,6 +547,13 @@ class ConsoleMaster(flow.FlowMaster): self.header = None self.make_view() + def view_flowdetails(self, flow): + h = flowdetailview.FlowDetailsView(self, flow, (self.statusbar, self.body, self.header)) + self.statusbar = StatusBar(self, flowdetailview.footer) + self.body = h + self.header = None + self.make_view() + def view_grideditor(self, ge): self.body = ge self.header = None |