Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Utils cleanups | Aldo Cortesi | 2016-06-07 | 2 | -3/+16 |
| | | | | | | | | - 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. | ||||
* | minor fixes | Maximilian Hils | 2016-06-06 | 2 | -5/+5 |
| | |||||
* | Fix test that may fail due to binary header data | Aldo Cortesi | 2016-06-05 | 1 | -1/+3 |
| | | | | | | | | This is just inherently not a determinisitc test. We don't use the log HTTP interface any more, so it can just go. A more radical "solution" is inbound shortly. Fixes #1207 | ||||
* | Utils reorganisation: add netlib.strutils | Aldo Cortesi | 2016-06-02 | 3 | -7/+7 |
| | | | | Extract a number of string and format-related functions to netlib.strutils. | ||||
* | Merge pull request #1183 from mitmproxy/module-imports | Aldo Cortesi | 2016-06-01 | 1 | -1/+3 |
|\ | | | | | use module-level imports only | ||||
| * | use module-level imports only | Maximilian Hils | 2016-05-31 | 1 | -1/+3 |
| | | |||||
* | | Reorganise netlib imports according to Google Style Guide | Aldo Cortesi | 2016-06-01 | 12 | -112/+117 |
|/ | |||||
* | be more strict about module namespaces | Maximilian Hils | 2016-05-31 | 1 | -4/+4 |
| | |||||
* | Fix tests harder | Aldo Cortesi | 2016-05-31 | 1 | -2/+2 |
| | |||||
* | http2.frame -> http2.framereader | Aldo Cortesi | 2016-05-31 | 1 | -0/+0 |
| | |||||
* | Satisfy flake8 | Aldo Cortesi | 2016-05-31 | 2 | -1/+2 |
| | |||||
* | Move human-friendly format functions to netlib.human, remove redundant ↵ | Aldo Cortesi | 2016-05-31 | 1 | -2/+2 |
| | | | | implementations | ||||
* | utils.multipartdecode -> http.multipart.decode | Aldo Cortesi | 2016-05-31 | 3 | -1/+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 | 1 | -1/+13 |
| | | | | Placing this next to its only use. | ||||
* | 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 | 4 | -12/+109 |
| | |||||
* | Start cleaning up netlib.utils | Aldo Cortesi | 2016-05-31 | 4 | -39/+60 |
| | | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes | ||||
* | Improve handling of pseudo-headers | Aldo Cortesi | 2016-05-31 | 1 | -6/+8 |
| | | | | | | | | | - 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 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 2 | -3/+3 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 1 | -2/+2 |
| | | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test | ||||
* | fix tests | Maximilian Hils | 2016-05-28 | 3 | -3/+3 |
| | |||||
* | netlib: fix most flake8 offenses | Thomas Kriechbaumer | 2016-05-28 | 4 | -9/+24 |
| | |||||
* | cleanup imports with flake8 | Thomas Kriechbaumer | 2016-05-28 | 4 | -5/+0 |
| | |||||
* | Merge branch 'issue-1099' | Maximilian Hils | 2016-05-20 | 1 | -0/+6 |
|\ | |||||
| * | fix #1099 | Maximilian Hils | 2016-05-20 | 1 | -0/+6 |
| | | |||||
* | | A clearer implementation of MultiDictView | Aldo Cortesi | 2016-05-21 | 4 | -97/+55 |
|/ | | | | | | 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. | ||||
* | tests++ | Maximilian Hils | 2016-05-20 | 2 | -3/+3 |
| | |||||
* | fix Header docs | Maximilian Hils | 2016-05-20 | 1 | -3/+3 |
| | |||||
* | improve MultiDict, add ImmutableMultiDict, adjust response.cookies | Maximilian Hils | 2016-05-18 | 6 | -87/+123 |
| | |||||
* | add MultiDict | Maximilian Hils | 2016-05-18 | 7 | -136/+137 |
| | | | | | | | | 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. | ||||
* | 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 | 1 | -1/+1 |
| | |||||
* | fix CONNECT display in upstream mode | Maximilian Hils | 2016-04-20 | 1 | -0/+2 |
| | |||||
* | peer_address -> ip_address | Maximilian Hils | 2016-04-11 | 1 | -0/+1 |
| | |||||
* | Merge branch 'better-replace' | Maximilian Hils | 2016-04-03 | 3 | -1/+66 |
|\ | |||||
| * | improve .replace() and move it into netlib | Maximilian Hils | 2016-04-02 | 3 | -1/+66 |
| | | |||||
* | | 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 | ||||
| * | | form_(in|out) -> first_line_format | Maximilian Hils | 2016-04-02 | 2 | -25/+4 |
| |/ | |||||
* / | response.msg -> response.reason | Maximilian Hils | 2016-04-02 | 1 | -10/+0 |
|/ | |||||
* | add Serializeable.copy | Maximilian Hils | 2016-04-02 | 4 | -11/+4 |
| | |||||
* | s/nocover/no cover/g | Thomas Kriechbaumer | 2016-03-27 | 5 | -25/+25 |
| | | | according to coveralls docs | ||||
* | update comments | Matthew Shao | 2016-03-26 | 1 | -4/+4 |
| | |||||
* | replace CONTENT_MISSING with None. | Matthew Shao | 2016-03-26 | 3 | -10/+6 |
| | |||||
* | Setting CONTENT_MISSING to None | Matthew Shao | 2016-03-26 | 1 | -1/+1 |
| | |||||
* | netlib: request.path can be None | Maximilian Hils | 2016-03-20 | 1 | -1/+4 |
| | |||||
* | Merge remote-tracking branch 'duffer/pretty-host' | Maximilian Hils | 2016-02-18 | 1 | -1/+24 |
| |