aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/scripting/inlinescripts.html
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-03-11 11:49:36 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-03-11 11:49:36 +1300
commitc34d1e3de6483b1ab8a1a3add53fb84364c68249 (patch)
tree0e0ef7797b4ff25996374351056c9e40b771976b /doc-src/scripting/inlinescripts.html
parent5ceef16486f71e28440f80799183190543f162f0 (diff)
downloadmitmproxy-c34d1e3de6483b1ab8a1a3add53fb84364c68249.tar.gz
mitmproxy-c34d1e3de6483b1ab8a1a3add53fb84364c68249.tar.bz2
mitmproxy-c34d1e3de6483b1ab8a1a3add53fb84364c68249.zip
Docs, examples.
Diffstat (limited to 'doc-src/scripting/inlinescripts.html')
-rw-r--r--doc-src/scripting/inlinescripts.html11
1 files changed, 10 insertions, 1 deletions
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:
+
+<pre class="terminal">
+> mitmdump -s add_header.py
+</pre>
+
+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:
-<table class="kvtable">
+<table class="table">
<tr>
<th>libmproxy.flow.ClientConnection</th>
<td>Describes a client connection.</td>