aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* make the linter happyMaximilian Hils2016-07-231-1/+1
|
* add remote debug exampleMaximilian Hils2016-07-231-0/+19
|
* Addon iface: .configure(options) -> .configure(options, updated)Aldo Cortesi2016-07-231-1/+1
|
* scripts: refactor some examples that keep global stateAldo Cortesi2016-07-233-39/+43
| | | | We now have a better way to do this.
* Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-1523-100/+140
|\
| * Fix HAR extractorAldo Cortesi2016-07-151-3/+5
| | | | | | | | Thanks to @mhils
| * Adjust concurrent tests for start methodAldo Cortesi2016-07-151-2/+0
| |
| * Add .start for addons and scriptsAldo Cortesi2016-07-159-8/+17
| | | | | | | | Also improve error messages, fix various unit tests
| * Convert examples and example tests for new-style scriptsAldo Cortesi2016-07-149-11/+11
| | | | | | | | | | Remove the test that just loads all the example scripts for now - it's a very low-value test, and we need to think of something better.
| * move script context to mitmproxy.ctxMaximilian Hils2016-07-085-18/+18
| |
| * remove script contextsMaximilian Hils2016-07-071-3/+4
| |
| * remove context from all scriptsMaximilian Hils2016-07-0723-85/+107
| |
| * py3++Maximilian Hils2016-07-072-2/+2
| |
| * disable harparser on py3Maximilian Hils2016-07-071-0/+6
| |
| * py3++Maximilian Hils2016-07-062-4/+5
| |
| * remove clean_bin, clarify unicode handlingMaximilian Hils2016-07-051-6/+8
| |
* | update examples: no decoded() anymore :tada:Maximilian Hils2016-07-027-54/+46
|/
* Make har_extractor.py output HAR 1.2 spec-compliantTai Dickerson2016-06-141-1/+3
| | | | | | | | HAR files were failing to load in harviewer (http://www.softwareishard.com/har/viewer/) due to: - ISO 8601 dates for startedDateTime missing timezone (http://www.softwareishard.com/blog/har-12-spec/#pages) -- Used UTC but could add detection of default system timezone if desired - pages object missing pageTimings (http://www.softwareishard.com/blog/har-12-spec/#pageTimings) -- Used {} because all child fields are optional
* update examples, tests, docsMaximilian Hils2016-06-1311-26/+31
|
* Simplify script concurrency helpersAldo Cortesi2016-06-081-2/+2
| | | | We now have take() to prevent double-replies.
* A new interface for replyAldo Cortesi2016-06-082-2/+2
| | | | | | | | | | | Reply is now explicit - it's no longer a callable itself. Instead, we have: reply.kill() - kill the flow reply.ack() - ack, but don't send anything reply.send(message) - send a response This is part of an incremental move to detach reply from our flow objects, and unify the script and handler interfaces.
* Shift a bunch more string-related functions to strutilsAldo Cortesi2016-06-021-2/+3
|
* Utils reorganisation: add netlib.strutilsAldo Cortesi2016-06-021-2/+2
| | | | Extract a number of string and format-related functions to netlib.strutils.
* handle_* -> * leftoversMaximilian Hils2016-05-291-2/+2
|
* more style cleanupThomas Kriechbaumer2016-05-291-1/+1
| | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test
* change comment indentationThomas Kriechbaumer2016-05-291-3/+3
|
* Merge pull request #1173 from mitmproxy/format-examplesThomas Kriechbaumer2016-05-2911-23/+28
|\ | | | | Format examples
| * format examplesMaximilian Hils2016-05-2911-23/+28
| |
* | Update method names in /examples/flowbasicAldo Cortesi2016-05-291-2/+2
|/ | | | Please enter the commit message for your changes. Lines starting
* Adapt examplesAldo Cortesi2016-05-292-11/+8
|
* improve MultiDict, add ImmutableMultiDict, adjust response.cookiesMaximilian Hils2016-05-181-1/+1
|
* add MultiDictMaximilian Hils2016-05-182-8/+8
| | | | | | | | This commit introduces MultiDict, a multi-dictionary similar to ODict, but with improved semantics (as in the Headers class). MultiDict fixes a few issues that were present in the Request/Response API. In particular, `request.cookies["foo"] = "bar"` has previously been a no-op, as the cookies property returned a mutable _copy_ of the cookies.
* Adding example which turns every reponse into an HTTP 500. (#1136)Jason Pepas2016-05-112-0/+4
| | | | | | * Adding example which turns every reponse into an HTTP 500. * Prefer b"" over None for response.content.
* FlowReadError -> FlowReadExceptionMaximilian Hils2016-04-291-2/+3
|
* py3++Maximilian Hils2016-04-132-3/+3
|
* response.msg -> response.reasonMaximilian Hils2016-04-021-1/+1
|
* py3++: iteritemsMaximilian Hils2016-03-201-1/+2
|
* py3++: cStringIOMaximilian Hils2016-03-201-3/+3
|
* Update modify_response_body.pycle10002016-03-151-1/+1
| | | fix typo
* Use the contextmanager in all testsShadab Zafar2016-03-111-0/+0
|
* Add test for iframe_injector exampleShadab Zafar2016-03-111-1/+1
|
* Update modify_querystring example & add test for itShadab Zafar2016-03-111-3/+2
|
* Update modify_form example to not use deprecated functionsShadab Zafar2016-03-111-3/+3
|
* fix content view example inline scriptMaximilian Hils2016-03-101-1/+1
|
* Fix pprint importShadab Zafar2016-03-041-1/+1
|
* Use default empty page_listShadab Zafar2016-03-041-2/+2
|
* Add basic test for har_extractorShadab Zafar2016-03-041-0/+0
|
* Remove some duplication and make more pythonic har_extractorShadab Zafar2016-03-021-81/+59
|
* Fixup HAR ExtractorShadab Zafar2016-03-011-9/+20
|
* har_extractor: Replace deprecated stuff with recommended onesShadab Zafar2016-02-201-3/+3
|