mitmproxy/notes
Aldo Cortesi 6d4500c679 Regularize language even further
- Unify offset specifcation syntax, so there's now oly one form for specify
pauses and disconnects.
- Use @ instead of ! for content generation. Mildy more convenient in the shell.
2012-04-29 14:20:27 +12:00

43 lines
907 B
Plaintext

Response:
code[msg]:[colon-separated features]
Features:
hVALUE=VALUE Set header
bVALUE Set body
cVALUE Set Content-Type header
lVALUE Set Location header
dOFF|r Disconnect after OFF bytes, measured from the beginning of the response.
pNUM|f,OFF|r|a Pause for NUM seconds after OFF bytes.
Value Specifiers:
@500k - 500k of random data
@500k,utf8 - 500k of utf8. Other specifiers: utf8,alphanum,alpha,printable
"foo" - literal
<path - load from path under data directory
<"path" - load from path under data directory
Examples:
200:b500k
404:pb5:b1k,printable
200:t"text/json":pr5:b1k
200:b1k:xr
Anchors:
Passed on command-line:
-a "/foo/bar=200:!/foo"
Built-in help
/help
/explain/expression