aboutsummaryrefslogtreecommitdiffstats
path: root/docs/scripting
Commit message (Collapse)AuthorAgeFilesLines
* prominently link to examples in script docsMaximilian Hils2017-04-271-0/+6
|
* Revamp how addons workAldo Cortesi2017-04-251-17/+1
| | | | | | | | | | | | | | | | | | | - Addons now nest, which means that addons can manage addons. This has a number of salutary effects - the scripts addon no longer has to poke into the global addons list, we no longer have to replace/remove/boot-outof parent addons when we load scripts, and this paves the way for making our top-level tools into addons themselves. - All addon calls are now wrapped in a safe execution environment where exceptions are caught, and output to stdout/stderr are intercepted and turned into logs. - We no longer support script arguments in sys.argv - creating an option properly is the only way to pass arguments. This means that all scripts are always directly controllable from interctive tooling, and that arguments are type-checked. For now, I've disabled testing of the har dump example - it needs to be moved to the new argument handling, and become a class addon. I'll address that in a separate patch.
* rename logging.py example. this conflicted with Python's stdlibMaximilian Hils2016-12-191-2/+2
|
* Addon test docs, remove stray deprecated eventsAldo Cortesi2016-12-171-0/+17
| | | | Fixes #1572
* fix docsThomas Kriechbaumer2016-11-231-1/+1
|
* websocket: add event documentationThomas Kriechbaumer2016-11-231-12/+46
|
* rename WebSocket{s,} protocolThomas Kriechbaumer2016-11-231-4/+4
|
* organize examplesMaximilian Hils2016-11-211-11/+11
| | | | | | | This commit is largely based on work by Thiago Arrais (@thiagoarrais) and Shane Bradfield (@l33tLumberjack). I wasn't really able to get their PR reasonably merged onto the latest master, so I reapplied their changes manually here and did some further improvements on that.
* docs: Fix typosQuentin Pradet2016-11-141-2/+2
|
* addons.proxyauth: out with the old, in with the newAldo Cortesi2016-11-131-5/+4
| | | | | - Strip out old auth mechanisms, and enable addon - Disable web app auth for now - this should just use the Tornado auth stuff
* Refine handling of HTTP CONNECTAldo Cortesi2016-11-121-0/+13
| | | | | | | - CONNECT requests do not generate the usual http events. Instead, they generate the http_connect event and handlers then have the option of setting an error response to abort the connect. - The connect handler is called for both upstream proxy and regular proxy CONNECTs.
* docs: examples/logging -> examples/context_loggingAldo Cortesi2016-10-301-3/+3
|
* mitmproxy.protocol -> mitmproxy.proxy.protocolAldo Cortesi2016-10-191-1/+1
| | | | | The protocols here are compltely proxy-specific, are only used from within the proxy module, and are not exposed to users.
* Move all tools into mitmproxy.tools, move models/* to top levelAldo Cortesi2016-10-191-8/+8
| | | | | | The primary motivation here (and for all the other moving around) is to present a clean "front of house" to library users, and to migrate primary objects to the top of the module hierarchy.
* addons.Addons -> addonmanager, builtins -> addonsAldo Cortesi2016-10-192-4/+6
|
* docs: concurrency, developing scriptsAldo Cortesi2016-10-161-20/+19
|
* docs: scripts on saved flowsAldo Cortesi2016-10-161-7/+23
|
* docs: logging and the contextAldo Cortesi2016-10-163-23/+44
|
* docs: overview, classes, argumentsAldo Cortesi2016-10-162-20/+60
|
* docs: improve external source links, tweak code docsAldo Cortesi2016-10-161-3/+17
|
* docs: cleanups improvements and fighting sphinxAldo Cortesi2016-10-166-253/+293
| | | | | | | | - Hide links to internal code listings, and link to github instead - Improve formatting of code/example captions - Fix outdated documentation of command-line options - Complete documentation of all events + improved formatting - tcp_open -> tcp_start, tcp_close -> tcp_end to reduce confusion
* websockets_handshake -> websocket_handshakeAldo Cortesi2016-10-041-1/+1
| | | | The plural feels awkward.
* fix docsMaximilian Hils2016-10-021-2/+1
|
* add docs for websocket_handshake hookThomas Kriechbaumer2016-09-011-0/+12
|
* remove script contextsMaximilian Hils2016-07-071-19/+4
|
* minor docs fixMaximilian Hils2016-06-261-1/+1
|
* update examples, tests, docsMaximilian Hils2016-06-131-1/+1
|
* docs: minor fixesMaximilian Hils2016-04-301-1/+1
|
* docs: better data structure docsMaximilian Hils2016-04-111-3/+3
|
* Doc tweaksAldo Cortesi2016-02-211-1/+0
| | | | | | | | | | | | | | | | | | | This patch does the following: - Fixes all warnings in the doc tree - Adds a modd + devd conf file that renders HTML and treats doc warnings as errors. This lets you send warning output to your desktop notifier, and gives livereload similar to the livehtml entry in the Makefile. - Some small tweaks Sphinx currently has a bug that causes unknown options to generate a warning: https://github.com/sphinx-doc/sphinx/issues/2229 This is fixed in stable, but not yet released. You can update Sphinx to the latest stable like so: pip install --upgrade https://github.com/sphinx-doc/sphinx/archive/stable.zip
* Docs and examples to top levelAldo Cortesi2016-02-182-0/+258
|
* move mitmproxyMaximilian Hils2016-02-152-258/+0
|
* Add Inline Script Hooks to TCP modeMichael J. Bazzinotti2016-01-101-23/+40
|
* docs :tada:Maximilian Hils2015-09-062-2/+2
|
* docs++Maximilian Hils2015-09-051-4/+2
|
* rewrite basic docs for readthedocsMaximilian Hils2015-09-042-0/+243