aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/master.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-04-27 11:09:40 +1200
committerAldo Cortesi <aldo@corte.si>2017-04-27 11:09:40 +1200
commit169baabcab33c1bd1ab7e33907794c7103f962d8 (patch)
tree60358042f65fc1553c839569823e8d17382f3219 /mitmproxy/master.py
parent2a46f3851a468263b53298b643f92a36b713128e (diff)
downloadmitmproxy-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.py2
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()