diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-04-27 11:09:40 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2017-04-27 11:09:40 +1200 |
commit | 169baabcab33c1bd1ab7e33907794c7103f962d8 (patch) | |
tree | 60358042f65fc1553c839569823e8d17382f3219 /mitmproxy/master.py | |
parent | 2a46f3851a468263b53298b643f92a36b713128e (diff) | |
download | mitmproxy-169baabcab33c1bd1ab7e33907794c7103f962d8.tar.gz mitmproxy-169baabcab33c1bd1ab7e33907794c7103f962d8.tar.bz2 mitmproxy-169baabcab33c1bd1ab7e33907794c7103f962d8.zip |
Basic outline of the command subsystem
- Add a command manager
- Sketch out the type system with a few simple supported types
Diffstat (limited to 'mitmproxy/master.py')
-rw-r--r-- | mitmproxy/master.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mitmproxy/master.py b/mitmproxy/master.py index 94900915..2a032c4a 100644 --- a/mitmproxy/master.py +++ b/mitmproxy/master.py @@ -8,6 +8,7 @@ from mitmproxy import controller from mitmproxy import eventsequence from mitmproxy import exceptions from mitmproxy import connections +from mitmproxy import command from mitmproxy import http from mitmproxy import log from mitmproxy.proxy.protocol import http_replay @@ -34,6 +35,7 @@ class Master: """ def __init__(self, opts, server): self.options = opts or options.Options() + self.commands = command.CommandManager(self) self.addons = addonmanager.AddonManager(self) self.event_queue = queue.Queue() self.should_exit = threading.Event() |