aboutsummaryrefslogtreecommitdiffstats
path: root/test/h2/example.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-01 12:34:50 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-05 13:33:37 +0200
commit5cecbdc1687346bb2bf139c904ffda2b37dc8276 (patch)
tree3f12eb8c913122f42b39da50d207290ecdaa2bd1 /test/h2/example.py
parente4c129026fbf4228c13ae64da19a9a85fc7ff2a5 (diff)
downloadmitmproxy-5cecbdc1687346bb2bf139c904ffda2b37dc8276.tar.gz
mitmproxy-5cecbdc1687346bb2bf139c904ffda2b37dc8276.tar.bz2
mitmproxy-5cecbdc1687346bb2bf139c904ffda2b37dc8276.zip
http2: add basic protocol handling
Diffstat (limited to 'test/h2/example.py')
-rw-r--r--test/h2/example.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/h2/example.py b/test/h2/example.py
deleted file mode 100644
index fc4f2f10..00000000
--- a/test/h2/example.py
+++ /dev/null
@@ -1,18 +0,0 @@
-from netlib.h2.frame import *
-from netlib.h2.h2 import *
-
-c = H2Client(("127.0.0.1", 443))
-c.connect()
-
-c.send_frame(HeadersFrame(
- flags=(Frame.FLAG_END_HEADERS | Frame.FLAG_END_STREAM),
- stream_id=0x1,
- headers=[
- (b':method', 'GET'),
- (b':path', b'/index.html'),
- (b':scheme', b'https'),
- (b':authority', b'localhost'),
- ]))
-
-while True:
- print c.read_frame().human_readable()