aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol2/http_protocol_mock.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-08-14 16:49:52 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-08-14 16:49:52 +0200
commit747699b126ab5788aca4541c9c9b4608611e7efa (patch)
tree09cec747f2fa182ba22255528617fd5f99280333 /libmproxy/protocol2/http_protocol_mock.py
parent808218f4bc64be8de065604f6509eb75d98fde88 (diff)
downloadmitmproxy-747699b126ab5788aca4541c9c9b4608611e7efa.tar.gz
mitmproxy-747699b126ab5788aca4541c9c9b4608611e7efa.tar.bz2
mitmproxy-747699b126ab5788aca4541c9c9b4608611e7efa.zip
more work on http protocol
Diffstat (limited to 'libmproxy/protocol2/http_protocol_mock.py')
-rw-r--r--libmproxy/protocol2/http_protocol_mock.py40
1 files changed, 39 insertions, 1 deletions
diff --git a/libmproxy/protocol2/http_protocol_mock.py b/libmproxy/protocol2/http_protocol_mock.py
index 962a76d6..5fdb9f2b 100644
--- a/libmproxy/protocol2/http_protocol_mock.py
+++ b/libmproxy/protocol2/http_protocol_mock.py
@@ -10,4 +10,42 @@ class HTTP1(object):
"""
:type connection: object
"""
- return HTTP1Protocol(connection).read_request(*args, **kwargs) \ No newline at end of file
+ return HTTP1Protocol(connection).read_request(*args, **kwargs)
+
+ @staticmethod
+ def read_response(connection, *args, **kwargs):
+ """
+ :type connection: object
+ """
+ return HTTP1Protocol(connection).read_response(*args, **kwargs)
+
+ @staticmethod
+ def read_http_body(connection, *args, **kwargs):
+ """
+ :type connection: object
+ """
+ return HTTP1Protocol(connection).read_http_body(*args, **kwargs)
+
+
+ @staticmethod
+ def _assemble_response_first_line(connection, *args, **kwargs):
+ """
+ :type connection: object
+ """
+ return HTTP1Protocol(connection)._assemble_response_first_line(*args, **kwargs)
+
+
+ @staticmethod
+ def _assemble_response_headers(connection, *args, **kwargs):
+ """
+ :type connection: object
+ """
+ return HTTP1Protocol(connection)._assemble_response_headers(*args, **kwargs)
+
+
+ @staticmethod
+ def read_http_body_chunked(connection, *args, **kwargs):
+ """
+ :type connection: object
+ """
+ return HTTP1Protocol(connection).read_http_body_chunked(*args, **kwargs) \ No newline at end of file