diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-08-30 03:42:11 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-08-30 03:42:11 +0200 |
commit | 3873e08339fd701738a1522af32e37363fcec14b (patch) | |
tree | 80b17775ca5f13b926d37e74356c3c12cec6a711 /libmproxy/protocol/handle.py | |
parent | 08655cb9567f502ec79799499968c57125d9a205 (diff) | |
download | mitmproxy-3873e08339fd701738a1522af32e37363fcec14b.tar.gz mitmproxy-3873e08339fd701738a1522af32e37363fcec14b.tar.bz2 mitmproxy-3873e08339fd701738a1522af32e37363fcec14b.zip |
remove old code
Diffstat (limited to 'libmproxy/protocol/handle.py')
-rw-r--r-- | libmproxy/protocol/handle.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libmproxy/protocol/handle.py b/libmproxy/protocol/handle.py deleted file mode 100644 index 49cb3c1b..00000000 --- a/libmproxy/protocol/handle.py +++ /dev/null @@ -1,20 +0,0 @@ -from __future__ import absolute_import -from . import http, tcp - -protocols = { - 'http': dict(handler=http.HTTPHandler, flow=http.HTTPFlow), - 'tcp': dict(handler=tcp.TCPHandler) -} - - -def protocol_handler(protocol): - """ - @type protocol: str - @returns: libmproxy.protocol.primitives.ProtocolHandler - """ - if protocol in protocols: - return protocols[protocol]["handler"] - - raise NotImplementedError( - "Unknown Protocol: %s" % - protocol) # pragma: nocover |