mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
4ce5e1386c
the HAR file spec (http://www.softwareishard.com/blog/har-12-spec/#timings) states that timings that do not apply for a certain requests should be set to -1, this example may set -1000 as a timings value for certain requests. This ends up producing invalid HAR files in many cases. My proposed fix is to assign -1 into the dic and only multiply by 1000 for other values |
||
---|---|---|
.. | ||
addons | ||
complex | ||
pathod | ||
simple | ||
keys.yaml | ||
README.md |
Mitmproxy Scripting API
Mitmproxy has a powerful scripting API that allows you to control almost any aspect of traffic being proxied. In fact, much of mitmproxy’s own core functionality is implemented using the exact same API exposed to scripters (see mitmproxy/addons).
This directory contains some examples of the scripting API. We recommend to start with the ones in simple/.
⚠️ | If you are browsing this on GitHub, make sure to select the git tag matching your mitmproxy version. |
---|
Some inline scripts may require additional dependencies, which can be installed using
pip install mitmproxy[examples]
.