Skip to content

chore: add a sample flow generator for mitmweb - #8342

Open
sleeyax wants to merge 1 commit into
mitmproxy:mainfrom
sleeyax:chore/gen-sample-flows
Open

chore: add a sample flow generator for mitmweb#8342
sleeyax wants to merge 1 commit into
mitmproxy:mainfrom
sleeyax:chore/gen-sample-flows

Conversation

@sleeyax

@sleeyax sleeyax commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Description

Adds test/helper_tools/gen_sample_flows.py, which writes a flow file with one flow per type and state the mitmweb flow table can display — the content types getResourceType branches on, plus intercepted, killed, errored, replayed and marked rows, plus the TCP, UDP, DNS and QUIC flows a regular HTTP proxy never sees.

That makes it possible to eyeball the whole table (icons, badges, both themes) without capturing the traffic first. --upload pushes the flows straight into a running mitmweb instead of writing a file.

Checklist

  • I have updated tests where applicable.
  • I have added an entry to the CHANGELOG.

Both are n/a: this is a dev-only helper alongside the other scripts in test/helper_tools/, with no user-facing change to release.

test/helper_tools/gen_sample_flows.py writes a flow file with one flow per type and state the mitmweb flow table can display, including the TCP, UDP, DNS and QUIC flows a regular HTTP proxy never sees.
This makes it possible to eyeball the whole table without having to capture the traffic first.
Passing --upload pushes the flows into a running mitmweb instead of writing a file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant