From aef3b626a70de5f385c8f5496c2e49575b5c3e1c Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 11 Aug 2015 20:27:34 +0200 Subject: wip commit --- libmproxy/protocol2/http_protocol_mock.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libmproxy/protocol2/http_protocol_mock.py (limited to 'libmproxy/protocol2/http_protocol_mock.py') diff --git a/libmproxy/protocol2/http_protocol_mock.py b/libmproxy/protocol2/http_protocol_mock.py new file mode 100644 index 00000000..962a76d6 --- /dev/null +++ b/libmproxy/protocol2/http_protocol_mock.py @@ -0,0 +1,13 @@ +""" +Temporary mock to sort out API discrepancies +""" +from netlib.http.http1 import HTTP1Protocol + + +class HTTP1(object): + @staticmethod + def read_request(connection, *args, **kwargs): + """ + :type connection: object + """ + return HTTP1Protocol(connection).read_request(*args, **kwargs) \ No newline at end of file -- cgit v1.2.3