diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-16 15:19:11 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-16 15:19:11 +0200 |
commit | 38c456bb627c4570e0ed983229ec8ef2f120a4b6 (patch) | |
tree | 2119fb74f6f4884b2e7edd91322ac09d3b6cd7e3 /libmproxy/protocol2/http_proxy.py | |
parent | c04fa1b233224d28e85be34ab5b6a8718497488c (diff) | |
download | mitmproxy-38c456bb627c4570e0ed983229ec8ef2f120a4b6.tar.gz mitmproxy-38c456bb627c4570e0ed983229ec8ef2f120a4b6.tar.bz2 mitmproxy-38c456bb627c4570e0ed983229ec8ef2f120a4b6.zip |
implement Http1 and Http2 protocols as layers
Diffstat (limited to 'libmproxy/protocol2/http_proxy.py')
-rw-r--r-- | libmproxy/protocol2/http_proxy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmproxy/protocol2/http_proxy.py b/libmproxy/protocol2/http_proxy.py index ca70b012..7f5957ac 100644 --- a/libmproxy/protocol2/http_proxy.py +++ b/libmproxy/protocol2/http_proxy.py @@ -1,12 +1,12 @@ from __future__ import (absolute_import, print_function, division) from .layer import Layer, ServerConnectionMixin -from .http import HttpLayer +from .http import Http1Layer, HttpLayer class HttpProxy(Layer, ServerConnectionMixin): def __call__(self): - layer = HttpLayer(self, "regular") + layer = Http1Layer(self, "regular") for message in layer(): if not self._handle_server_message(message): yield message @@ -18,7 +18,7 @@ class HttpUpstreamProxy(Layer, ServerConnectionMixin): self.server_address = server_address def __call__(self): - layer = HttpLayer(self, "upstream") + layer = Http1Layer(self, "upstream") for message in layer(): if not self._handle_server_message(message): - yield message
\ No newline at end of file + yield message |