Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests++ | Maximilian Hils | 2016-06-07 | 1 | -1/+23 |
| | |||||
* | Utils cleanups | Aldo Cortesi | 2016-06-07 | 1 | -0/+9 |
| | | | | | | | | - Move more stuff that belongs in netlib.human - Move some stuff to near the only use - Zap mitmproxy.utils.timestamp(). I see the rationale, but we used it interchangeably with time.time() throughout the project. Since time.time() dominates in the codebase and timestamp() is such low utility, away it goes. | ||||
* | fix multidict unittests | redfast00 | 2016-06-05 | 1 | -2/+2 |
| | |||||
* | Shift a bunch more string-related functions to strutils | Aldo Cortesi | 2016-06-02 | 2 | -4/+23 |
| | |||||
* | 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. | ||||
* | be more strict about module namespaces | Maximilian Hils | 2016-05-31 | 1 | -2/+1 |
| | |||||
* | http2.frame -> http2.framereader | Aldo Cortesi | 2016-05-31 | 1 | -3/+3 |
| | |||||
* | 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 | 2 | -7/+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 | 1 | -20/+20 |
| | | | | 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 | 2 | -64/+65 |
| | |||||
* | Start cleaning up netlib.utils | Aldo Cortesi | 2016-05-31 | 3 | -40/+40 |
| | | | | | - 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 headers order | Thomas Kriechbaumer | 2016-05-29 | 1 | -1/+1 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 9 | -10/+12 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 4 | -16/+22 |
| | | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test | ||||
* | fix tests | Maximilian Hils | 2016-05-28 | 3 | -4/+4 |
| | |||||
* | cleanup imports with flake8 | Thomas Kriechbaumer | 2016-05-28 | 8 | -10/+6 |
| | |||||
* | bytes_to_escaped_str: always escape single quotes | Maximilian Hils | 2016-05-25 | 1 | -0/+2 |
| | |||||
* | escaped_str_to_bytes: support unicode on python 2 | Maximilian Hils | 2016-05-25 | 1 | -3/+6 |
| | |||||
* | Clean un-needed imports | Aldo Cortesi | 2016-05-21 | 1 | -2/+0 |
| | |||||
* | A clearer implementation of MultiDictView | Aldo Cortesi | 2016-05-21 | 1 | -2/+24 |
| | | | | | | 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 | 7 | -168/+289 |
|\ | | | | | | | mhils-multidict | ||||
| * | tests++ | Maximilian Hils | 2016-05-20 | 2 | -98/+218 |
| | | |||||
| * | improve MultiDict, add ImmutableMultiDict, adjust response.cookies | Maximilian Hils | 2016-05-18 | 3 | -24/+26 |
| | | |||||
| * | add MultiDict | Maximilian Hils | 2016-05-18 | 6 | -46/+45 |
| | | | | | | | | | | | | | | | | 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 | -10/+0 |
|/ | |||||
* | Sanitize Print (#1135) | Maximilian Hils | 2016-05-12 | 1 | -0/+15 |
| | | | | | | | | * sanitize strings with shell control characters * netlib: add utilities to safe-print bytes * escaped str: add TODO for multi-byte chars | ||||
* | Merge pull request #1121 from Kriechi/fix-cookies | Thomas Kriechbaumer | 2016-05-11 | 3 | -4/+13 |
|\ | | | | | improve cookie parsing | ||||
| * | improve cookie parsing | Thomas Kriechbaumer | 2016-05-10 | 3 | -4/+13 |
| | | | | | | | | | | allows '/' to be within a cookie name removes deprecated cookie getter/setter fixes #1118 | ||||
* | | actually fix tests | Maximilian Hils | 2016-05-10 | 1 | -2/+2 |
| | | |||||
* | | Revert "fix tests" | Maximilian Hils | 2016-05-10 | 1 | -2/+2 |
| | | | | | | | | This reverts commit f315dc1eb9f4701548fd57bbb38de1e9caa34e40. | ||||
* | | fix tests | Maximilian Hils | 2016-05-10 | 1 | -2/+2 |
|/ | |||||
* | fix #1120 | Maximilian Hils | 2016-05-09 | 1 | -0/+12 |
| | |||||
* | remove netlib version check | Maximilian Hils | 2016-04-29 | 1 | -13/+0 |
| | |||||
* | py3++ | Maximilian Hils | 2016-04-13 | 1 | -3/+3 |
| | |||||
* | Merge branch 'better-replace' | Maximilian Hils | 2016-04-03 | 2 | -0/+23 |
|\ | |||||
| * | improve .replace() and move it into netlib | Maximilian Hils | 2016-04-02 | 2 | -0/+23 |
| | | |||||
* | | Merge pull request #1074 from mitmproxy/move-response-refresh | Thomas Kriechbaumer | 2016-04-03 | 2 | -0/+39 |
|\ \ | | | | | | | move HTTPResponse.refresh into netlib | ||||
| * | | move HTTPResponse.refresh into netlib | Maximilian Hils | 2016-04-02 | 2 | -0/+39 |
| |/ | |||||
* | | Merge pull request #1073 from mitmproxy/first-line-format | Thomas Kriechbaumer | 2016-04-03 | 1 | -6/+6 |
|\ \ | | | | | | | form_(in|out) -> first_line_format | ||||
| * | | form_(in|out) -> first_line_format | Maximilian Hils | 2016-04-02 | 1 | -6/+6 |
| |/ | |||||
* / | response.msg -> response.reason | Maximilian Hils | 2016-04-02 | 1 | -2/+2 |
|/ | |||||
* | add Serializeable.copy | Maximilian Hils | 2016-04-02 | 1 | -0/+27 |
| | |||||
* | replace CONTENT_MISSING with None. | Matthew Shao | 2016-03-26 | 1 | -3/+3 |
| | |||||
* | netlib: request.path can be None | Maximilian Hils | 2016-03-20 | 1 | -1/+6 |
| |