mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 22:00:34 +00:00
35703b0b6b
* Example addon for saving streamed data including a small bug fix to make it work. * Revert "Example addon for saving streamed data including a small bug fix to make it work." This reverts commit 02ab78def9a52eaca1a89d0757cd9475ce250eaa. * Add https_ping_threshold option to enable keep-alive for HTTP/2 server connections by sending PING frames if the conection is idle longer than the threshold. * Fixed test * Fix test * Adding pragma * Moved timer logic to _http2.py * Small code improvement * Update mitmproxy/options.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * Update mitmproxy/options.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * Update mitmproxy/proxy/commands.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * Update mitmproxy/proxy/commands.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * Update mitmproxy/proxy/layers/http/_http2.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * Sending Wakup back to right client * Update mitmproxy/proxy/server.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * Update mitmproxy/proxy/server.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * Update mitmproxy/proxy/server.py Co-authored-by: Maximilian Hils <github@maximilianhils.com> * Incorporated suggested changes Fixed almost all tests * make `Wakeup` a `CommandCompleted` event. This allows us to use it with `reply()` in tests, which makes sure that the correct instance is reused. # Please enter the commit message for your changes. Lines starting * nits `typing.Set` for Python 3.8 compatibility and a few minor stylistic changes. * nits nits Co-authored-by: Maximilian Hils <github@maximilianhils.com> Co-authored-by: Maximilian Hils <git@maximilianhils.com> |
||
---|---|---|
.. | ||
src | ||
.editorconfig | ||
gulpfile.js | ||
jest.config.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
Quick Start
- Install mitmproxy as described in
../CONTRIBUTING.md
- Run
node --version
to make sure that you have at least Node.js 14 or above. If you are on Ubuntu <= 20.04, you need to upgrade. - Run
cd mitmproxy/web
to change to the directory with package.json - Run
npm install
to install dependencies - Run
npm start
to start live-compilation - Run
mitmweb
after activating your Python virtualenv (see../CONTRIBUTING.md
).
Testing
- Run
npm test
to run the test suite.
Architecture
There are two components:
-
Server:
mitmproxy/tools/web
-
Client:
web
Contributing
We very much appreciate any (small) improvements to mitmweb. Please do not include the compiled assets in
mitmproxy/tools/web/static
in your pull request. Refreshing them on every commit would massively increase repository size. We will update these
files before every release.
Developer Tools
npm start
supports live-reloading if you install a matching browser extension.- You can debug application state using the React DevTools and Redux DevTools browser extensions.