Commit Graph

7320 Commits

Author SHA1 Message Date
fate0
5661b40942 @concurrent decorator works for class methods. (#2708)
* @concurrent decorator should works for class methods
* modify test for @concurrent decorator in class.
* add docs
2017-12-26 18:44:43 +01:00
Thomas Kriechbaumer
e1f4d17ea7 cleanup transparent linux docs 2017-12-21 10:47:41 +01:00
Jim Higson
907ef4a02c Update linux.rst 2017-12-21 10:47:41 +01:00
Thomas Kriechbaumer
19268d5666
Merge pull request #2710 from jimhigson/update-ios-instructions
Move trust instructions for ios
2017-12-21 10:09:02 +01:00
Aldo Cortesi
a6a4b1c33b
Merge pull request #2716 from cortesi/cmdfixes
various command-related fixes
2017-12-20 19:49:02 +13:00
Aldo Cortesi
7d45d7f15e cuts: don't crash when retrieving header of a non-existent response 2017-12-20 11:53:44 +13:00
Aldo Cortesi
2fd5bbe1e7 console: ignore non-nav keys in chooser
Awkward, but works

Fixes #2417
2017-12-20 11:44:47 +13:00
Aldo Cortesi
4a9deb350d console options: retain focus position after edit
Fixes #2622
2017-12-20 10:59:04 +13:00
Aldo Cortesi
1e85345c00 "Commands" title -> "Command Reference" 2017-12-20 10:49:29 +13:00
Aldo Cortesi
6efff27be4 commands: don't try to view flow returns as data
Fixes #2704
2017-12-20 10:35:53 +13:00
Aldo Cortesi
91b9ca8675
Merge pull request #2715 from cortesi/fancycommander2
commander: palette entries, highlight errors
2017-12-20 10:32:38 +13:00
Aldo Cortesi
c19b229608 console: add console.bodyview.options
This may be "request" or "response".
2017-12-20 10:31:49 +13:00
Aldo Cortesi
79ca2c8437 commander: command argument underlay
Display context-sensitive argument types as an "underlay" in commander.
2017-12-20 10:07:35 +13:00
Aldo Cortesi
4f32b835f7
Merge pull request #2714 from cortesi/commander1
commander: highlight commands
2017-12-20 09:11:19 +13:00
Aldo Cortesi
d7ee5d8f85 commander: palette entries, highlight errors
- Add palette entries specific to commander
- Highlight errors
- Introduce an Unknown type to keep track of extra unknown arguments to
commands
2017-12-20 09:09:40 +13:00
Aldo Cortesi
3341edc9fa commander: highlight commands
Step 1 of the fancification of commander.
2017-12-20 08:21:48 +13:00
Aldo Cortesi
04d83d7672
Merge pull request #2712 from cortesi/types3
types: add validation, use it in commands
2017-12-19 12:34:27 +13:00
Aldo Cortesi
d98fc4f03a commands: partial parser now returns help for remaining arguments 2017-12-19 11:50:12 +13:00
Aldo Cortesi
843bad187c types: add validation to partial parser 2017-12-19 11:22:03 +13:00
Maximilian Hils
72bbb02654
Merge pull request #2705 from mhils/issue-2694
Re-add body editing
2017-12-18 22:35:09 +01:00
Aldo Cortesi
6563feaf05 types: use new type validation mechanism in commands 2017-12-19 10:19:08 +13:00
Aldo Cortesi
cda14830d3 types: add validation functions 2017-12-19 10:19:08 +13:00
Aldo Cortesi
38b37ba7f5 types: cleanups and minor refactorings 2017-12-19 10:19:08 +13:00
Thomas Kriechbaumer
9faad6bc9c
Merge pull request #2702 from Kriechi/fix-2640
improve websocket dumps
2017-12-18 21:31:00 +01:00
Maximilian Hils
b2bb216b72 implement body editing, fix #2694 2017-12-18 20:03:18 +01:00
Maximilian Hils
b19eb333d3
minor docs improvements
1. The way the certificate is installed (mitm.it or not) does not matter.
2. Instructions are a bit shorter now and match those provided by Apple at https://support.apple.com/en-us/HT204477.
2017-12-18 20:00:19 +01:00
Thomas Kriechbaumer
05a8559dff add doc string 2017-12-18 19:51:29 +01:00
Aldo Cortesi
6ef6286d8e
Merge pull request #2707 from cortesi/addtypes
commands: refactor types
2017-12-19 07:50:52 +13:00
jimhigson
4c4ca96017 move extra info for ios to ios section 2017-12-18 18:28:02 +00:00
Thomas Kriechbaumer
417a860f32 add tests 2017-12-18 11:20:18 +01:00
Thomas Kriechbaumer
4a3702792c ignore contrib type errors 2017-12-18 09:33:14 +01:00
Thomas Kriechbaumer
8d836d251e fix #2640 2017-12-18 09:19:21 +01:00
Thomas Kriechbaumer
1a7ce384da websocket: support domain and url filters 2017-12-18 09:19:20 +01:00
Aldo Cortesi
b0b67fe2a7 commands: refactor types
The type system was scattered over a number of places, making it hard to
follow. This collects all command types in types.py, and completion, validation
and parsing for each type is centralised. We should use the same mechanism for
options.
2017-12-18 17:02:48 +13:00
Aldo Cortesi
b1f923e148
Merge pull request #2700 from mhils/issue-2697
Fix #2697
2017-12-18 14:33:32 +13:00
Aldo Cortesi
50357ade34
Merge pull request #2698 from mhils/issue-2658
Don't display contentview errors too prominently.
2017-12-18 14:30:38 +13:00
Aldo Cortesi
7dbe4209d9
Merge pull request #2690 from cortesi/types
mitmproxy.types -> mitmproxy.coretypes
2017-12-18 08:14:07 +13:00
Maximilian Hils
9d9439ef3b fix #2697 2017-12-17 17:54:04 +01:00
Maximilian Hils
ab3da19eaa update evenlog when verbosity changes 2017-12-17 15:52:22 +01:00
Maximilian Hils
f36dbc62a8 log contentview errors in the debug log only
We already display the "couldn't parse" message,
which is better than overwhelming users with a traceback.

refs #2658
2017-12-17 15:52:10 +01:00
Thomas Kriechbaumer
9e4a443d42
Merge pull request #2691 from Kriechi/bump-cryptography
bump cryptography
2017-12-17 09:57:54 +01:00
Thomas Kriechbaumer
8a38e1ef3a bump cryptography
This includes important security fixes.
2017-12-17 09:44:57 +01:00
Aldo Cortesi
978b8d095c mitmproxy.types -> mitmproxy.coretypes
The types name is valuable, and we have a better use for it in collecting and
exposing types for options and commands.

The coretypes module should probably be split up anyway - it contains a
threading base class, a few container objects, and the defintion of our
serialization protocol. I was tempted to rename it to "uncagegorized" for the
sake of honesty.
2017-12-17 13:31:36 +13:00
Aldo Cortesi
33585bd2a2
Merge pull request #2689 from cortesi/grideditor.save
console.grideditor.save
2017-12-17 13:09:29 +13:00
Aldo Cortesi
45c613f970
Merge pull request #2687 from cortesi/minor1
commands: minor refactoring and command renaming
2017-12-17 13:09:19 +13:00
Aldo Cortesi
ed3cd949e4 console: add console.grideditor.save
This will tide us over until we have a proper data viewer.
2017-12-17 11:41:19 +13:00
Aldo Cortesi
1f6656ccb1
Merge pull request #2686 from cortesi/flowspecopts
commander: add completion for flowspecs
2017-12-17 11:23:20 +13:00
Aldo Cortesi
a289db8d75 commands: minor refactoring and command renaming 2017-12-17 11:23:15 +13:00
Aldo Cortesi
49142883e8
Merge pull request #2685 from cortesi/longout
Add a data viewer for command output
2017-12-17 10:37:22 +13:00
Aldo Cortesi
e549b63465 commander: add completion for flowspecs 2017-12-17 10:34:29 +13:00