mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 10:26:23 +00:00
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
|
|
Response:
|
|
|
|
code[msg]:[colon-separated features]
|
|
|
|
|
|
Features:
|
|
|
|
hVALUE=VALUE Set header
|
|
bVALUE Set body
|
|
db Disconnect before sending data
|
|
dr Disconnect randomly
|
|
pbNUM|forever Pause before sending data for NUM seconds or forever
|
|
paNUM|forever Pause after sending all data for NUM seconds or forever
|
|
prNUM|forever Pause randomly for NUM seconds or forever
|
|
cVALUE Set Content-Type header
|
|
lVALUE Set Location header
|
|
|
|
|
|
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
|
|
|
|
|
|
Sequences:
|
|
|
|
200 * 2 | !forever
|
|
200 | 404 | 200,b:500g
|
|
|
|
|
|
Anchors:
|
|
|
|
Passed on command-line?
|
|
--anchor /foo/bar 200:!/foo
|
|
|
|
|
|
Built-in help
|
|
|
|
/help
|
|
/explain/expression
|