diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-08-11 20:27:34 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-08-11 20:32:14 +0200 |
commit | aef3b626a70de5f385c8f5496c2e49575b5c3e1c (patch) | |
tree | 868b8786906eb7bdc1a269b64494594c5831b54b /libmproxy/protocol2/layer.py | |
parent | 026330a3b014f24f095b839b29186036854de3bc (diff) | |
download | mitmproxy-aef3b626a70de5f385c8f5496c2e49575b5c3e1c.tar.gz mitmproxy-aef3b626a70de5f385c8f5496c2e49575b5c3e1c.tar.bz2 mitmproxy-aef3b626a70de5f385c8f5496c2e49575b5c3e1c.zip |
wip commit
Diffstat (limited to 'libmproxy/protocol2/layer.py')
-rw-r--r-- | libmproxy/protocol2/layer.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/libmproxy/protocol2/layer.py b/libmproxy/protocol2/layer.py index 8aede22e..0ae64c43 100644 --- a/libmproxy/protocol2/layer.py +++ b/libmproxy/protocol2/layer.py @@ -41,21 +41,6 @@ from .messages import Connect, Reconnect, ChangeServer from ..exceptions import ProtocolException -class RootContext(object): - """ - The outmost context provided to the root layer. - As a consequence, every layer has .client_conn, .channel and .config. - """ - - def __init__(self, client_conn, config, channel): - self.client_conn = client_conn # Client Connection - self.channel = channel # provides .ask() method to communicate with FlowMaster - self.config = config # Proxy Configuration - - def next_layer(self): - print(type(self)) - - class _LayerCodeCompletion(object): """ Dummy class that provides type hinting in PyCharm, which simplifies development a lot. @@ -208,4 +193,4 @@ def yield_from_callback(fun): self.yield_from_callback = None - return wrapper + return wrapper
\ No newline at end of file |