Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify cookies.is_expired | Shadab Zafar | 2016-08-15 | 1 | -16/+7 |
| | |||||
* | Add a function to get cookie expiration time | Shadab Zafar | 2016-08-15 | 1 | -0/+26 |
| | |||||
* | Add method to group pairs by cookies | Shadab Zafar | 2016-08-15 | 1 | -0/+31 |
| | |||||
* | fix tests | Maximilian Hils | 2016-08-04 | 1 | -0/+1 |
| | |||||
* | simplify contentview logic | Maximilian Hils | 2016-08-04 | 1 | -0/+1 |
| | |||||
* | Integrated encode/decoder for brotli | Angelo Agatino Nicolosi | 2016-07-30 | 2 | -2/+2 |
| | |||||
* | improve query/path_components getter/setter | Maximilian Hils | 2016-07-24 | 2 | -19/+49 |
| | |||||
* | remove content caching in netlib.http.Message | Maximilian Hils | 2016-07-23 | 1 | -84/+31 |
| | |||||
* | fix test_view_urlencoded | Maximilian Hils | 2016-07-23 | 1 | -0/+1 |
| | |||||
* | fix content view cache invalidation | Maximilian Hils | 2016-07-21 | 1 | -6/+0 |
| | |||||
* | fix-1366 | Thomas Kriechbaumer | 2016-07-16 | 1 | -3/+2 |
| | |||||
* | Merge pull request #1306 from mitmproxy/message-body-encoding | Maximilian Hils | 2016-07-16 | 5 | -79/+213 |
|\ | | | | | Improve Message Body Encoding | ||||
| * | preserve content-type parameter order | Maximilian Hils | 2016-07-15 | 1 | -1/+2 |
| | | |||||
| * | Merge remote-tracking branch 'origin/master' into message-body-encoding | Maximilian Hils | 2016-07-15 | 7 | -2/+96 |
| |\ | |||||
| * | | improve message content semantics | Maximilian Hils | 2016-07-15 | 2 | -52/+93 |
| | | | |||||
| * | | raise ValueError if content-encoding is invalid | Maximilian Hils | 2016-07-04 | 2 | -16/+38 |
| | | | |||||
| * | | tests++ | Maximilian Hils | 2016-07-02 | 1 | -3/+3 |
| | | | |||||
| * | | make the linter happy | Maximilian Hils | 2016-07-02 | 1 | -1/+1 |
| | | | |||||
| * | | message.content -> .raw_content, implement .text | Maximilian Hils | 2016-07-02 | 4 | -66/+139 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR improves our handling of HTTP message body encodings: - The unaltered message body is now accessible as `.raw_content` - The "content-encoding"-decoded content (i.e. gzip removed) content is not `.content`, as this is what we want in 99% of the cases. - `.text` now provides the "content-encoding"-decoded and then "content-type charset"-decoded message body. - The decoded values for `.content` and `.text` are cached, so that repeated access and `x.text = x.text` is cheap. - The `decoded()` decorator is now deprecated, as we can now just use `.content`. Similarly `HTTPMessage.get_decoded_content()` is deprecated. | ||||
* | | | replacehooks -> addon | Aldo Cortesi | 2016-07-16 | 1 | -2/+2 |
| |/ |/| | | | | | | | Also fixes a bug in header replacements in netlib that resulted in a mutable multidict. | ||||
* | | Test cookies.is_expired separately | Shadab Zafar | 2016-07-10 | 1 | -4/+9 |
| | | |||||
* | | Move cookie expiry detection to separate function | Shadab Zafar | 2016-07-09 | 1 | -1/+23 |
| | | |||||
* | | py3++ | Maximilian Hils | 2016-07-07 | 3 | -1/+23 |
| | | |||||
* | | py3++, multidict fixes | Maximilian Hils | 2016-07-06 | 2 | -3/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | This commit improves Python 3 compatibility and fixes two multidict issues: 1. Headers.items(multi=True) now decodes fields 2. MultiDict.clear(item) has been removed, as Python's MutableMapping already defines .clear() with different semantics. This is confusing for everyone who expects a dict-like object. `.pop("attr", None)` is not fantastic, but it's the Python way to do it. | ||||
* | | py3: fix bytes vs. str | Thomas Kriechbaumer | 2016-07-03 | 1 | -4/+4 |
| | | |||||
* | | h2: move header parsing to netlib | Shadab Zafar | 2016-07-03 | 2 | -0/+39 |
|/ | |||||
* | fix tcp message handling | Maximilian Hils | 2016-07-01 | 1 | -1/+3 |
| | |||||
* | py3++ | Maximilian Hils | 2016-07-01 | 3 | -7/+17 |
| | |||||
* | Handle case when scheme is None | Shadab Zafar | 2016-07-01 | 1 | -1/+1 |
| | |||||
* | http2: improve error handling in tests | Thomas Kriechbaumer | 2016-06-22 | 1 | -1/+2 |
| | |||||
* | move custom HTTP/2 stack from netlib to pathod | Thomas Kriechbaumer | 2016-06-17 | 2 | -434/+0 |
| | |||||
* | Py3: fix http2 bytes issue | Shadab Zafar | 2016-06-15 | 1 | -2/+2 |
| | |||||
* | Remove odict | Aldo Cortesi | 2016-06-09 | 1 | -4/+5 |
| | | | | | | | | - Adds default implementations for _kconv and _reduce_values to MultiDict. Without these, operations fail in really, really non-obvious ways. - Replace the remaining few instances of ODict Fixes #1159 | ||||
* | 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 |