aboutsummaryrefslogtreecommitdiffstats
path: root/test/h2/example.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-06-06 11:54:35 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-06-06 11:54:35 +1200
commitfcaabeb4556d299e8489d26f9eedc6db8fe1b86f (patch)
tree2bad0c7cdf1efd62d2c0f5a773085eae686acbbf /test/h2/example.py
parent0269d0fb8b8726f8a84ebe916a553ef435a3a50d (diff)
parente39d8aed6d77b6cf5d57c795c69e735a7c1430fa (diff)
downloadmitmproxy-fcaabeb4556d299e8489d26f9eedc6db8fe1b86f.tar.gz
mitmproxy-fcaabeb4556d299e8489d26f9eedc6db8fe1b86f.tar.bz2
mitmproxy-fcaabeb4556d299e8489d26f9eedc6db8fe1b86f.zip
Merge pull request #65 from Kriechi/h2-client
HTTP/2 protocol definition
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()