As a simpler approach, I tried logging to
mitmproxy.ctx.log, so that my reports could be seen in the output of mitmdump. But messages logged in
response are printed to the console before the request/response summary, like this:
E 1000 Malformed ETag header
127.0.0.1:47442: GET http://httpbin.org/response-headers?ETag=foo-bar
<< 200 OK 90b
which is impossible to parse visually. I guess some sort of
after_response event would help here.
Better, how about a method like this:
such that my text would then be shown in the “Details” pane in mitmproxy and mitmweb? And annotated flows could be marked with an icon in the flow list.
Do the developers feel that this would be a good feature?