aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/scripting/inlinescripts.html
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-07-31 22:29:13 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-07-31 22:29:13 +0200
commite9401a2123f416f8dd4c24bb4bbc74f297369133 (patch)
treeafebf68d1091d487ef64083962992ea7b703a80e /doc-src/scripting/inlinescripts.html
parentf5fb1138fdda77ec4a3bb5493479d2f56cdb0851 (diff)
parent3e3dbee936bb71e813d50937118eebff4ba23617 (diff)
downloadmitmproxy-e9401a2123f416f8dd4c24bb4bbc74f297369133.tar.gz
mitmproxy-e9401a2123f416f8dd4c24bb4bbc74f297369133.tar.bz2
mitmproxy-e9401a2123f416f8dd4c24bb4bbc74f297369133.zip
Merge branch 'stream'
Conflicts: libmproxy/protocol/http.py
Diffstat (limited to 'doc-src/scripting/inlinescripts.html')
-rw-r--r--doc-src/scripting/inlinescripts.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc-src/scripting/inlinescripts.html b/doc-src/scripting/inlinescripts.html
index 32a98e99..65090cfb 100644
--- a/doc-src/scripting/inlinescripts.html
+++ b/doc-src/scripting/inlinescripts.html
@@ -46,12 +46,20 @@ a connection can correspond to multiple HTTP requests.
Called when a client request has been received. The __Flow__ object is
guaranteed to have a non-None __request__ attribute.
+### responseheaders(ScriptContext, Flow)
+
+Called when the headers of a server response have been received.
+This will always be called before the response hook.
+The __Flow__ object is guaranteed to have non-None __request__ and
+__response__ attributes. __response.content__ will not be valid,
+as the response body has not been read yet.
### response(ScriptContext, Flow)
Called when a server response has been received. The __Flow__ object is
guaranteed to have non-None __request__ and __response__ attributes.
-
+Note that if response streaming is enabled for this response,
+__response.content__ will not contain the response body.
### error(ScriptContext, Flow)