diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-02-18 09:19:05 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-02-18 09:27:08 +1300 |
commit | 92597f82ea8e4747ce1836ecd5eb2479486e8647 (patch) | |
tree | 2aa391b558d92c0122a16c155d3375d31221cde4 /examples/dup_and_replay.py | |
parent | 49464de1cb159361c16a232b3d8c267b36e95483 (diff) | |
download | mitmproxy-92597f82ea8e4747ce1836ecd5eb2479486e8647.tar.gz mitmproxy-92597f82ea8e4747ce1836ecd5eb2479486e8647.tar.bz2 mitmproxy-92597f82ea8e4747ce1836ecd5eb2479486e8647.zip |
Docs and examples to top level
Diffstat (limited to 'examples/dup_and_replay.py')
-rw-r--r-- | examples/dup_and_replay.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/dup_and_replay.py b/examples/dup_and_replay.py new file mode 100644 index 00000000..9ba91d3b --- /dev/null +++ b/examples/dup_and_replay.py @@ -0,0 +1,4 @@ +def request(context, flow): + f = context.duplicate_flow(flow) + f.request.path = "/changed" + context.replay_request(f) |