Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add quote/unquote tests | Maximilian Hils | 2016-07-24 | 1 | -2/+42 |
| | |||||
* | remove content caching in netlib.http.Message | Maximilian Hils | 2016-07-23 | 1 | -33/+0 |
| | |||||
* | fix content view cache invalidation | Maximilian Hils | 2016-07-21 | 1 | -4/+0 |
| | |||||
* | Fix netlib.utils.is_valid_host | Aldo Cortesi | 2016-07-21 | 1 | -0/+9 |
| | | | | | | | | - Don't crash when passed an empty string. This translated into an actual core crash, discovered while fuzzing with afl. - Taking a slice of length one out of bytes returns an integer, so the check for trailing period in this function never worked on Python3. - Add unit tests. | ||||
* | fix-1366 | Thomas Kriechbaumer | 2016-07-16 | 1 | -4/+22 |
| | |||||
* | preserve content-type parameter order | Maximilian Hils | 2016-07-15 | 1 | -1/+3 |
| | |||||
* | Merge remote-tracking branch 'origin/master' into message-body-encoding | Maximilian Hils | 2016-07-15 | 4 | -8/+29 |
|\ | |||||
| * | Test cookies.is_expired separately | Shadab Zafar | 2016-07-10 | 1 | -0/+21 |
| | | |||||
| * | py3++ | Maximilian Hils | 2016-07-07 | 2 | -3/+3 |
| | | |||||
| * | py3++ | Maximilian Hils | 2016-07-07 | 1 | -4/+4 |
| | | |||||
* | | improve message content semantics | Maximilian Hils | 2016-07-15 | 2 | -13/+73 |
| | | |||||
* | | raise ValueError if content-encoding is invalid | Maximilian Hils | 2016-07-04 | 1 | -8/+10 |
| | | |||||
* | | tests++ | Maximilian Hils | 2016-07-02 | 1 | -1/+43 |
| | | |||||
* | | message.content -> .raw_content, implement .text | Maximilian Hils | 2016-07-02 | 1 | -33/+84 |
|/ | | | | | | | | | | | | | | | 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. | ||||
* | move custom HTTP/2 stack from netlib to pathod | Thomas Kriechbaumer | 2016-06-17 | 2 | -544/+1 |
| | |||||
* | Use handlers in http2 test suite | Aldo Cortesi | 2016-06-14 | 1 | -100/+100 |
| | |||||
* | 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 | 2 | -0/+2 |
| | |||||
* | utils.multipartdecode -> http.multipart.decode | Aldo Cortesi | 2016-05-31 | 2 | -0/+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 | 1 | -1/+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 | 1 | -0/+65 |
| | |||||
* | Start cleaning up netlib.utils | Aldo Cortesi | 2016-05-31 | 1 | -13/+13 |
| | | | | | - 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 | 3 | -3/+4 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 3 | -14/+19 |
| | | | | 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 | 4 | -6/+2 |
| | |||||
* | Clean un-needed imports | Aldo Cortesi | 2016-05-21 | 1 | -2/+0 |
| | |||||
* | tests++ | Maximilian Hils | 2016-05-20 | 1 | -98/+1 |
| | |||||
* | 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. | ||||
* | 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 |
| | |||||
* | Merge branch 'better-replace' | Maximilian Hils | 2016-04-03 | 1 | -0/+19 |
|\ | |||||
| * | improve .replace() and move it into netlib | Maximilian Hils | 2016-04-02 | 1 | -0/+19 |
| | | |||||
* | | 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 |
|/ | |||||
* | 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 |
| |