mitmproxy / mitmweb

GSoC Issue tracking for mitmweb.
11 stars 3 forks source link

Basic Options Screen #5

Closed mhils closed 8 years ago

mhils commented 8 years ago

We want an equivalent of pressing o in mitmproxy. In the first iteration, we should expose the important binary options:

There are more, but these are the most important ones IMO.

cle1000 commented 8 years ago

Question to options:

mhils commented 8 years ago

This is our main option processing: https://github.com/mitmproxy/mitmproxy/blob/79cb17ef03afac2b7314f6aed13480024672993e/mitmproxy/main.py#L113-L120

All the bare command line switches are defined here: https://github.com/mitmproxy/mitmproxy/blob/master/mitmproxy/cmdline.py

Options specific to the proxy server are handled here: https://github.com/mitmproxy/mitmproxy/blob/79cb17ef03afac2b7314f6aed13480024672993e/mitmproxy/proxy/config.py

All options specific to mitmweb are specified here: https://github.com/mitmproxy/mitmproxy/blob/79cb17ef03afac2b7314f6aed13480024672993e/mitmproxy/web/__init__.py#L89

If you follow this trail, you should see that --host matches to the options.showhost. Similarly, --raw-tcp matches to server.config.rawtcp. Makes sense?

Let's do all boolean options first and --sticky* and --stream later on.

cle1000 commented 8 years ago

yes this makes sense, thanks for your quick response :)