aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/libpathod/protocols/http2.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-02-17 10:35:41 +1300
committerAldo Cortesi <aldo@corte.si>2016-02-17 10:35:41 +1300
commit887ecf88967fe6caf8f8d5443e49b6bfcfbfcd0d (patch)
tree4c3b4f9cc555a945ddbeeb1b179070ef98b2eeff /pathod/libpathod/protocols/http2.py
parentef8e95956d938fd4891d79fdbfa83f8a77a482cb (diff)
parentb87797ea255a0e2058e0574a5a00150f7f2df5db (diff)
downloadmitmproxy-887ecf88967fe6caf8f8d5443e49b6bfcfbfcd0d.tar.gz
mitmproxy-887ecf88967fe6caf8f8d5443e49b6bfcfbfcd0d.tar.bz2
mitmproxy-887ecf88967fe6caf8f8d5443e49b6bfcfbfcd0d.zip
Merge pull request #950 from Kriechi/rename
Rename lib folders
Diffstat (limited to 'pathod/libpathod/protocols/http2.py')
-rw-r--r--pathod/libpathod/protocols/http2.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/pathod/libpathod/protocols/http2.py b/pathod/libpathod/protocols/http2.py
deleted file mode 100644
index a098a14e..00000000
--- a/pathod/libpathod/protocols/http2.py
+++ /dev/null
@@ -1,20 +0,0 @@
-from netlib.http import http2
-from .. import version, app, language, utils, log
-
-class HTTP2Protocol:
-
- def __init__(self, pathod_handler):
- self.pathod_handler = pathod_handler
- self.wire_protocol = http2.HTTP2Protocol(
- self.pathod_handler, is_server=True, dump_frames=self.pathod_handler.http2_framedump
- )
-
- def make_error_response(self, reason, body):
- return language.http2.make_error_response(reason, body)
-
- def read_request(self, lg=None):
- self.wire_protocol.perform_server_connection_preface()
- return self.wire_protocol.read_request(self.pathod_handler.rfile)
-
- def assemble(self, message):
- return self.wire_protocol.assemble(message)