Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make tcp.Client.connect return a context manager that closes the connection | Aldo Cortesi | 2016-06-03 | 1 | -18/+18 | |
| | ||||||
* | Implement a service connection handler counter, use it in Pathod test suite | Aldo Cortesi | 2016-06-03 | 1 | -0/+1 | |
| | | | | Lots of failures, but that's a good thing. | |||||
* | Merge remote-tracking branch 'upstream/master' into testsuite | Aldo Cortesi | 2016-06-03 | 1 | -5/+8 | |
|\ | ||||||
| * | Merge remote-tracking branch 'duffer/pathod-lang-generators' | Maximilian Hils | 2016-06-02 | 1 | -5/+8 | |
| |\ | ||||||
| | * | Py3: Return bytes from FileGenerator | Shadab Zafar | 2016-06-02 | 1 | -4/+6 | |
| | | | | | | | | | | | | and use __getitem__ instead of __getslice__ | |||||
| | * | Py3: Return bytes from RandomGenerator | Shadab Zafar | 2016-06-02 | 1 | -1/+2 | |
| | | | | | | | | | | | | and use __getitem__ rather than __getslice__ | |||||
* | | | Satisfy linting gods | Aldo Cortesi | 2016-06-02 | 1 | -1/+2 | |
| | | | ||||||
* | | | Silence requests warnings | Aldo Cortesi | 2016-06-02 | 1 | -0/+3 | |
| | | | | | | | | | | | | Once we convert the rest of the suite to pathoc, this can go. | |||||
* | | | Reimplement test retrievals on pathoc and ditch requests | Aldo Cortesi | 2016-06-02 | 3 | -11/+27 | |
| | | | | | | | | | | | | | | | Requests uses urllib3, which has a connection pool that's not easy to disable (https://github.com/shazow/urllib3/issues/383). | |||||
* | | | pathod.test shouldn't use the API at all | Aldo Cortesi | 2016-06-02 | 1 | -4/+5 | |
| | | | ||||||
* | | | Since we have locks over the logs, use direct access rather than API ↵ | Aldo Cortesi | 2016-06-02 | 2 | -5/+4 | |
| | | | | | | | | | | | | requests to get to them | |||||
* | | | Honesty in testing | Aldo Cortesi | 2016-06-02 | 1 | -5/+0 | |
|/ / | | | | | | | | | | | | | | | | | | | | | | | - Don't skip tests that fail - Don't omit console from coverage I'm working on the pathod races, and can't seem to reproduce the failures locally. Also, let's not kid ourselves about the console coverage - it should be tracked. To improve it, we should measure it. Regressions in coverage of the module should be flagged by CI. | |||||
* | | Shift a bunch more string-related functions to strutils | Aldo Cortesi | 2016-06-02 | 3 | -23/+23 | |
| | | ||||||
* | | Consolidate some functions to strutils.bytes_to_escaped_str | Aldo Cortesi | 2016-06-02 | 1 | -11/+0 | |
| | | ||||||
* | | Utils reorganisation: add netlib.strutils | Aldo Cortesi | 2016-06-02 | 2 | -37/+40 | |
| | | | | | | | | Extract a number of string and format-related functions to netlib.strutils. | |||||
* | | Fix non-deterministic test failures in export | Aldo Cortesi | 2016-06-02 | 1 | -2/+4 | |
|/ | | | | | We had various places in the code where we relied on incidental order of dict keys. Add a helper to multidict, and fix. | |||||
* | Merge pull request #1180 from dufferzafar/pathod-base | Maximilian Hils | 2016-05-31 | 1 | -12/+12 | |
|\ | | | | | Python 3 - pathod.language.base | |||||
| * | Py3: Use byte literals for comparison | Shadab Zafar | 2016-05-31 | 1 | -12/+12 | |
| | | ||||||
* | | be more strict about module namespaces | Maximilian Hils | 2016-05-31 | 1 | -2/+1 | |
|/ | ||||||
* | http2.frame -> http2.framereader | Aldo Cortesi | 2016-05-31 | 2 | -10/+10 | |
| | ||||||
* | Fix test failures | Aldo Cortesi | 2016-05-31 | 1 | -1/+1 | |
| | ||||||
* | Satisfy flake8 | Aldo Cortesi | 2016-05-31 | 4 | -0/+4 | |
| | ||||||
* | Unify and make symmetric pretty_size and parse_size | Aldo Cortesi | 2016-05-31 | 1 | -4/+8 | |
| | ||||||
* | Move human-friendly format functions to netlib.human, remove redundant ↵ | Aldo Cortesi | 2016-05-31 | 4 | -39/+31 | |
| | | | | implementations | |||||
* | utils.multipartdecode -> http.multipart.decode | Aldo Cortesi | 2016-05-31 | 3 | -32/+33 | |
| | | | | | | also utils.parse_content_type -> http.headers.parse_content_type | |||||
* | netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokens | Aldo Cortesi | 2016-05-31 | 2 | -12/+12 | |
| | | | | Placing this next to its only use. | |||||
* | Module is part of the name - url.decode, not url.urldecode | Aldo Cortesi | 2016-05-31 | 2 | -22/+22 | |
| | | | | A pattern we need to use far more often in the codebase | |||||
* | Extract url functions from netlib.utils and move to netlib.http.url | Aldo Cortesi | 2016-05-31 | 3 | -67/+68 | |
| | ||||||
* | Start cleaning up netlib.utils | Aldo Cortesi | 2016-05-31 | 4 | -47/+47 | |
| | | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes | |||||
* | Improve handling of pseudo-headers | Aldo Cortesi | 2016-05-31 | 1 | -1/+4 | |
| | | | | | | | | | - The canonical source for :method, :scheme and :path are the .method, .scheme and .path attributes on the request object. - These pseudo-headers are stripped after reading the request, and re-inserted just before sending. - The :authority header remains, and should be handled analagously to the Host header in HTTP1 with respect to display and user interaction. | |||||
* | Fix test import error | Aldo Cortesi | 2016-05-31 | 1 | -1/+2 | |
| | ||||||
* | split mitmproxy.flow into mitmproxy.flow.* | Maximilian Hils | 2016-05-30 | 1 | -21/+21 | |
| | ||||||
* | fix | Thomas Kriechbaumer | 2016-05-29 | 1 | -1/+1 | |
| | ||||||
* | fix windows paths | Thomas Kriechbaumer | 2016-05-29 | 1 | -2/+2 | |
| | ||||||
* | fix har test | Thomas Kriechbaumer | 2016-05-29 | 1 | -5/+5 | |
| | ||||||
* | fix headers order | Thomas Kriechbaumer | 2016-05-29 | 1 | -1/+1 | |
| | ||||||
* | fix #1162 | Thomas Kriechbaumer | 2016-05-29 | 1 | -2/+5 | |
| | ||||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 52 | -86/+93 | |
| | ||||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 11 | -57/+63 | |
| | | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test | |||||
* | Merge pull request #1172 from cortesi/solidcore | Aldo Cortesi | 2016-05-29 | 6 | -104/+104 | |
|\ | | | | | First steps to solidifying the core | |||||
| * | handle_* -> * | Aldo Cortesi | 2016-05-29 | 6 | -66/+58 | |
| | | | | | | | | | | Now that we have the controller.handler decorator, the _handler prefix stutters. | |||||
| * | Explicitly list all events | Aldo Cortesi | 2016-05-29 | 1 | -2/+2 | |
| | | ||||||
| * | Flatten ServerMaster into Master | Aldo Cortesi | 2016-05-29 | 1 | -5/+2 | |
| | | ||||||
| * | Merge branch 'master' into solidcore | Aldo Cortesi | 2016-05-29 | 18 | -28/+21 | |
| |\ | ||||||
| * | | Make @controller.handler inheritance-friendly | Aldo Cortesi | 2016-05-28 | 1 | -4/+1 | |
| | | | | | | | | | | | | Use this to adapt mitmweb and mitproxy console | |||||
| * | | Mandate that all handlers must be wrapped, make tests pass | Aldo Cortesi | 2016-05-28 | 2 | -18/+26 | |
| | | | | | | | | | | | | mitmproxy, mitmdump and mitmweb masters still to be done | |||||
| * | | Sketch out a more solid core | Aldo Cortesi | 2016-05-28 | 3 | -15/+21 | |
| | | | | | | | | | | | | | | | - Decorator for handler methods - Stricter checking for double-acks and non-acks | |||||
* | | | fix tests | Maximilian Hils | 2016-05-28 | 4 | -5/+5 | |
| |/ |/| | ||||||
* | | cleanup imports with flake8 | Thomas Kriechbaumer | 2016-05-28 | 17 | -25/+18 | |
| | | ||||||
* | | fix Python 2 tests | Maximilian Hils | 2016-05-28 | 1 | -2/+2 | |
| | |