Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Satisfy flake8 | Aldo Cortesi | 2016-05-31 | 5 | -2/+5 |
| | |||||
* | Unify and make symmetric pretty_size and parse_size | Aldo Cortesi | 2016-05-31 | 1 | -17/+16 |
| | |||||
* | Move human-friendly format functions to netlib.human, remove redundant ↵ | Aldo Cortesi | 2016-05-31 | 4 | -19/+55 |
| | | | | implementations | ||||
* | utils.multipartdecode -> http.multipart.decode | Aldo Cortesi | 2016-05-31 | 4 | -57/+61 |
| | | | | | | 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 | -13/+13 |
| | | | | Placing this next to its only use. | ||||
* | isascii is unused | Aldo Cortesi | 2016-05-31 | 1 | -8/+0 |
| | |||||
* | Module is part of the name - url.decode, not url.urldecode | Aldo Cortesi | 2016-05-31 | 4 | -15/+15 |
| | | | | 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 | 5 | -107/+109 |
| | |||||
* | Start cleaning up netlib.utils | Aldo Cortesi | 2016-05-31 | 10 | -102/+103 |
| | | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes | ||||
* | Improve handling of pseudo-headers | Aldo Cortesi | 2016-05-31 | 2 | -6/+16 |
| | | | | | | | | | - 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. | ||||
* | Satisfy flake8 | Aldo Cortesi | 2016-05-30 | 1 | -5/+0 |
| | |||||
* | fix bytes vs. str | Thomas Kriechbaumer | 2016-05-29 | 1 | -2/+2 |
| | |||||
* | fix headers order | Thomas Kriechbaumer | 2016-05-29 | 1 | -2/+2 |
| | |||||
* | raise a more verbose error | Thomas Kriechbaumer | 2016-05-29 | 1 | -3/+3 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 3 | -5/+14 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 1 | -2/+2 |
| | | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test | ||||
* | Merge pull request #1172 from cortesi/solidcore | Aldo Cortesi | 2016-05-29 | 1 | -1/+1 |
|\ | | | | | First steps to solidifying the core | ||||
| * | Merge branch 'master' into solidcore | Aldo Cortesi | 2016-05-29 | 13 | -40/+44 |
| |\ | |||||
| * \ | Merge branch 'master' into solidcore | Aldo Cortesi | 2016-05-28 | 1 | -1/+3 |
| |\ \ | |||||
| * | | | Sketch out a more solid core | Aldo Cortesi | 2016-05-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | - Decorator for handler methods - Stricter checking for double-acks and non-acks | ||||
* | | | | fix tests | Maximilian Hils | 2016-05-28 | 3 | -3/+3 |
| | | | | |||||
* | | | | minor improvements | Maximilian Hils | 2016-05-28 | 1 | -4/+4 |
| |_|/ |/| | | |||||
* | | | netlib: fix most flake8 offenses | Thomas Kriechbaumer | 2016-05-28 | 10 | -31/+43 |
| | | | |||||
* | | | cleanup imports with flake8 | Thomas Kriechbaumer | 2016-05-28 | 8 | -10/+2 |
| |/ |/| | |||||
* | | Fix crash in mitmproxy when viewing responses | Aldo Cortesi | 2016-05-28 | 1 | -1/+3 |
|/ | |||||
* | fix py3 tests | Maximilian Hils | 2016-05-25 | 1 | -1/+1 |
| | |||||
* | bytes_to_escaped_str: always escape single quotes | Maximilian Hils | 2016-05-25 | 1 | -1/+7 |
| | |||||
* | escaped_str_to_bytes: support unicode on python 2 | Maximilian Hils | 2016-05-25 | 1 | -1/+5 |
| | |||||
* | Merge branch 'issue-1099' | Maximilian Hils | 2016-05-20 | 2 | -0/+9 |
|\ | |||||
| * | fix #1099 | Maximilian Hils | 2016-05-20 | 2 | -0/+9 |
| | | |||||
* | | A clearer implementation of MultiDictView | Aldo Cortesi | 2016-05-21 | 5 | -106/+95 |
| | | | | | | | | | | | | This makes MultiDictView work with a simple getter/setter pair, rather than using attributes with implicit leading underscores. Also move MultiDictView into multidict.py and adds some simple unit tests. | ||||
* | | Merge branch 'multidict' of https://github.com/mhils/mitmproxy into ↵ | Aldo Cortesi | 2016-05-21 | 11 | -214/+487 |
|\| | | | | | | | mhils-multidict | ||||
| * | tests++ | Maximilian Hils | 2016-05-20 | 3 | -6/+14 |
| | | |||||
| * | fix Header docs | Maximilian Hils | 2016-05-20 | 1 | -3/+3 |
| | | |||||
| * | improve MultiDict, add ImmutableMultiDict, adjust response.cookies | Maximilian Hils | 2016-05-18 | 7 | -250/+363 |
| | | |||||
| * | add MultiDict | Maximilian Hils | 2016-05-18 | 10 | -148/+300 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | clean up odict | Maximilian Hils | 2016-05-18 | 1 | -47/+34 |
|/ | |||||
* | Sanitize Print (#1135) | Maximilian Hils | 2016-05-12 | 1 | -0/+28 |
| | | | | | | | | * sanitize strings with shell control characters * netlib: add utilities to safe-print bytes * escaped str: add TODO for multi-byte chars | ||||
* | replace SimpleCookie with our own parser lib | Thomas Kriechbaumer | 2016-05-11 | 1 | -1/+1 |
| | |||||
* | improve cookie parsing | Thomas Kriechbaumer | 2016-05-10 | 3 | -37/+20 |
| | | | | | allows '/' to be within a cookie name removes deprecated cookie getter/setter fixes #1118 | ||||
* | fix #1120 | Maximilian Hils | 2016-05-09 | 2 | -1/+3 |
| | |||||
* | remove netlib version check | Maximilian Hils | 2016-04-29 | 1 | -14/+0 |
| | |||||
* | fix CONNECT display in upstream mode | Maximilian Hils | 2016-04-20 | 1 | -0/+2 |
| | |||||
* | peer_address -> ip_address | Maximilian Hils | 2016-04-11 | 2 | -3/+4 |
| | |||||
* | bump version | Maximilian Hils | 2016-04-09 | 1 | -1/+1 |
| | |||||
* | Merge branch 'better-replace' | Maximilian Hils | 2016-04-03 | 5 | -12/+77 |
|\ | |||||
| * | improve .replace() and move it into netlib | Maximilian Hils | 2016-04-02 | 5 | -12/+77 |
| | | |||||
* | | Merge pull request #1074 from mitmproxy/move-response-refresh | Thomas Kriechbaumer | 2016-04-03 | 2 | -0/+68 |
|\ \ | | | | | | | move HTTPResponse.refresh into netlib | ||||
| * | | move HTTPResponse.refresh into netlib | Maximilian Hils | 2016-04-02 | 2 | -0/+68 |
| | | | |||||
* | | | Merge pull request #1073 from mitmproxy/first-line-format | Thomas Kriechbaumer | 2016-04-03 | 2 | -25/+4 |
|\ \ \ | | | | | | | | | form_(in|out) -> first_line_format |