diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-08 10:45:17 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-08 10:45:17 +0200 |
commit | 293e3c68969f6abdc09cc390f93b658e60ce79be (patch) | |
tree | c316aec35670bb43f28eb9d3373564dbdb9614a2 /libpathod/language/base.py | |
parent | 722b3ae9cd929a7bc2159d7364995a0bdf3ef031 (diff) | |
download | mitmproxy-293e3c68969f6abdc09cc390f93b658e60ce79be.tar.gz mitmproxy-293e3c68969f6abdc09cc390f93b658e60ce79be.tar.bz2 mitmproxy-293e3c68969f6abdc09cc390f93b658e60ce79be.zip |
http2: add request-response handling
Diffstat (limited to 'libpathod/language/base.py')
-rw-r--r-- | libpathod/language/base.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libpathod/language/base.py b/libpathod/language/base.py index ee5d05b5..88712d69 100644 --- a/libpathod/language/base.py +++ b/libpathod/language/base.py @@ -15,13 +15,15 @@ class Settings: staticdir = None, unconstrained_file_access = False, request_host = None, - websocket_key = None + websocket_key = None, + protocol = None, ): + self.is_client = is_client self.staticdir = staticdir self.unconstrained_file_access = unconstrained_file_access self.request_host = request_host - self.websocket_key = websocket_key - self.is_client = is_client + self.websocket_key = websocket_key # TODO: refactor this into the protocol + self.protocol = protocol Sep = pp.Optional(pp.Literal(":")).suppress() |