aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol2/http_protocol_mock.py
diff options
context:
space:
mode:
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