From c34d1e3de6483b1ab8a1a3add53fb84364c68249 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 11 Mar 2013 11:49:36 +1300 Subject: Docs, examples. --- doc-src/scripting/inlinescripts.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc-src/scripting/inlinescripts.html') diff --git a/doc-src/scripting/inlinescripts.html b/doc-src/scripting/inlinescripts.html index 7abf743c..39752b7f 100644 --- a/doc-src/scripting/inlinescripts.html +++ b/doc-src/scripting/inlinescripts.html @@ -13,6 +13,15 @@ lets the script interact with the global mitmproxy state. The __response__ event also gets an instance of Flow, which we can use to manipulate the response itself. +We can now run this script as follows: + +
+> mitmdump -s add_header.py
+
+ +The new header will be added to all responses passing through the proxy. + + ## Events @@ -60,7 +69,7 @@ Called once on script shutdown, after any other events. The main classes you will deal with in writing mitmproxy scripts are: - +
-- cgit v1.2.3 From cfb5ba89ce96594b2f8d51f27c9b2ee41ecf18e5 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 14 Mar 2013 09:19:43 +1300 Subject: Introduce a filtered flow writer, and use it in dump.py Fixes #104 --- doc-src/scripting/inlinescripts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc-src/scripting/inlinescripts.html') diff --git a/doc-src/scripting/inlinescripts.html b/doc-src/scripting/inlinescripts.html index 39752b7f..2d53df80 100644 --- a/doc-src/scripting/inlinescripts.html +++ b/doc-src/scripting/inlinescripts.html @@ -13,7 +13,7 @@ lets the script interact with the global mitmproxy state. The __response__ event also gets an instance of Flow, which we can use to manipulate the response itself. -We can now run this script as follows: +We can now run this script using mitmdump or mitmproxy as follows:
 > mitmdump -s add_header.py
-- 
cgit v1.2.3

libmproxy.flow.ClientConnection Describes a client connection.