aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* mitproxy.options -> mitmproxy.optmanager, mitmproxy.flow.options -> ↵Aldo Cortesi2016-07-2013-26/+22
| | | | | | | | | mitmproxy.options It might be slightly more felicitous to move optmanager into netlib at some point, especially if we can also use it in pathod. This also consolidates our constants in mitmproxy.options, removing some duplicates.
* Test suite: get_proxy_config -> get_optionsAldo Cortesi2016-07-193-41/+57
|
* Remove proxy.config.process_proxy_optionsAldo Cortesi2016-07-191-2/+2
|
* ProxyConf: adapt mitmproxy console, ditch tcp|host filter attrs on flow.masterAldo Cortesi2016-07-191-9/+0
|
* ProxyConf: auth_* into OptionsAldo Cortesi2016-07-194-14/+8
|
* ProxyConfig: http2, rawtcp, no_upstream_cert -> OptionsAldo Cortesi2016-07-192-5/+2
|
* ProxyConfig: Refactor to move verification mode checks into configureAldo Cortesi2016-07-191-14/+22
|
* Regularize naming of upstream_trusted_ca* optionsAldo Cortesi2016-07-192-9/+9
|
* ProxyConfig: various SSL options to OptionsAldo Cortesi2016-07-191-2/+5
|
* config.parse_server_spec shouldn't pass byts to tcp.AddressAldo Cortesi2016-07-192-4/+4
|
* ProxyConfig: mode, upstream_server and upstream_auth to OptionsAldo Cortesi2016-07-196-59/+84
|
* ProxyConfig: --body-size-limit to OptionsAldo Cortesi2016-07-191-1/+1
|
* Move clientcers & cadir to OptionsAldo Cortesi2016-07-191-1/+3
| | | | | Also adds a .configure mechanism to ProxyConfig, and hooks it up to the change event.
* ProxyConfig: cadir to optionsAldo Cortesi2016-07-192-4/+2
|
* ProxyConfig refactorAldo Cortesi2016-07-194-29/+30
| | | | | Step two of frog boiling: move listening address and port into options. This is the hard bit, because it touches the test suite so deeply.
* Unify proxy config and optionsAldo Cortesi2016-07-194-12/+21
| | | | | This is step 1 in a gradual "boiling frog" strategy. Decorate ProxyConfig with an Options object.
* Console options cleanupAldo Cortesi2016-07-181-2/+6
| | | | Use setters, use togglers, move more things out of master
* Add a toggller helper to Options, start using it in mitmproxy consoleAldo Cortesi2016-07-181-0/+11
|
* cleanupThomas Kriechbaumer2016-07-171-12/+12
|
* http2: coverage++Thomas Kriechbaumer2016-07-171-1/+152
|
* setheaders -> addonAldo Cortesi2016-07-172-52/+64
|
* Merge pull request #1370 from cortesi/filestreamerAldo Cortesi2016-07-171-2/+2
|\ | | | | Some work on stream-to-file
| * Some work on stream-to-fileAldo Cortesi2016-07-171-2/+2
| | | | | | | | | | - stream -> filestreamer throughout - move active_flows set into FileStreamer addon
* | Merge pull request #1367 from Kriechi/fix-1366Aldo Cortesi2016-07-171-4/+22
|\ \ | | | | | | fix-1366
| * | fix-1366Thomas Kriechbaumer2016-07-161-4/+22
| |/
* | Merge branch 'master' into dumperAldo Cortesi2016-07-173-6/+229
|\|
| * Merge remote-tracking branch 'duffer/tcpflow-filter'Maximilian Hils2016-07-163-6/+229
| |\
| | * Allow DummyFlow to match ~e, ~src and ~dstShadab Zafar2016-07-162-15/+37
| | |
| | * Add DummyFlow and its TestsShadab Zafar2016-07-161-1/+59
| | |
| | * Add tests for TCPFlow.matchShadab Zafar2016-07-161-1/+15
| | |
| | * Add ~http and ~tcp filtersShadab Zafar2016-07-161-0/+10
| | |
| | * Use ~bq / ~bs for messages sent from client / serverShadab Zafar2016-07-161-5/+11
| | |
| | * Add tests for HTTPFlow only filtersShadab Zafar2016-07-161-0/+50
| | |
| | * Add test for operators (& | !)Shadab Zafar2016-07-161-0/+25
| | |
| | * Add test for addresses (~src, ~dst)Shadab Zafar2016-07-161-0/+16
| | |
| | * Add test for body (~b)Shadab Zafar2016-07-161-0/+7
| | |
| | * Add test for error (~e)Shadab Zafar2016-07-161-1/+16
| | |
* | | Extract console dump functionality into an addonAldo Cortesi2016-07-173-82/+94
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes all the code that deals with printing flows to screen from dump.py into a self-contained addon. - This fixes a bug - by moving dumping into an addon, we now dump flows AFTER addon transformation, so we can see the changes made. - We get dumping "for free" in other places by simply adding the addon. It's now easy to add dumping to console to mitmweb for debugging and development. The same goes for external projects that derive from master. - We also get major benefits in clarity for a frankly hairy part of our project. Mitmdump is much clearer, and all the hairyness is now isolated for further refactoring.
* | Merge pull request #1306 from mitmproxy/message-body-encodingMaximilian Hils2016-07-165-93/+219
|\ \ | | | | | | Improve Message Body Encoding
| * | preserve content-type parameter orderMaximilian Hils2016-07-151-1/+3
| | |
| * | Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-1557-956/+1395
| |\|
| * | improve message content semanticsMaximilian Hils2016-07-152-13/+73
| | |
| * | raise ValueError if content-encoding is invalidMaximilian Hils2016-07-041-8/+10
| | |
| * | tests++Maximilian Hils2016-07-021-1/+43
| | |
| * | make the linter happyMaximilian Hils2016-07-021-1/+0
| | |
| * | message.content -> .raw_content, implement .textMaximilian Hils2016-07-027-97/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR improves our handling of HTTP message body encodings: - The unaltered message body is now accessible as `.raw_content` - The "content-encoding"-decoded content (i.e. gzip removed) content is not `.content`, as this is what we want in 99% of the cases. - `.text` now provides the "content-encoding"-decoded and then "content-type charset"-decoded message body. - The decoded values for `.content` and `.text` are cached, so that repeated access and `x.text = x.text` is cheap. - The `decoded()` decorator is now deprecated, as we can now just use `.content`. Similarly `HTTPMessage.get_decoded_content()` is deprecated.
* | | replacehooks -> addonAldo Cortesi2016-07-164-61/+62
| |/ |/| | | | | | | Also fixes a bug in header replacements in netlib that resulted in a mutable multidict.
* | add_event -> add_log throughout projectAldo Cortesi2016-07-164-4/+5
| | | | | | | | | | "Event" is terribly over-loaded in the project, and "log" is straight-forward and self-explanatory.
* | Zap unused test scriptsAldo Cortesi2016-07-1511-59/+9
| |
* | Script cleanupsAldo Cortesi2016-07-152-4/+67
| | | | | | | | | | | | - Preserve script order on config change - Prohibit script duplicates (i.e. identical script + args) - Various cleanups and tweaks