From 16361439c44191ce94d2694552f677b9d2c76124 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Mon, 1 Jun 2015 18:14:21 +0200 Subject: http2: add command line arguments --- libpathod/pathoc.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libpathod/pathoc.py') diff --git a/libpathod/pathoc.py b/libpathod/pathoc.py index 4efa0447..72c2db3c 100644 --- a/libpathod/pathoc.py +++ b/libpathod/pathoc.py @@ -150,6 +150,10 @@ class Pathoc(tcp.TCPClient): clientcert=None, ciphers=None, + # HTTP/2 + use_http2=False, + http2_skip_connection_preface=False, + # Websockets ws_read_limit = None, @@ -189,6 +193,9 @@ class Pathoc(tcp.TCPClient): self.ciphers = ciphers self.sslinfo = None + self.use_http2 = use_http2 + self.http2_skip_connection_preface = http2_skip_connection_preface + self.ws_read_limit = ws_read_limit self.timeout = timeout @@ -407,6 +414,8 @@ def main(args): # pragma: nocover sslversion = args.sslversion, clientcert = args.clientcert, ciphers = args.ciphers, + use_http2 = args.use_http2, + http2_skip_connection_preface = args.http2_skip_connection_preface, showreq = args.showreq, showresp = args.showresp, explain = args.explain, -- cgit v1.2.3