aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/response.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-151-0/+7
|\
| * py3++Maximilian Hils2016-07-071-0/+7
| |
* | message.content -> .raw_content, implement .textMaximilian Hils2016-07-021-2/+3
|/ | | | | | | | | | | | | | | 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.
* Remove odictAldo Cortesi2016-06-091-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
* minor fixesMaximilian Hils2016-06-061-1/+1
|
* Reorganise netlib imports according to Google Style GuideAldo Cortesi2016-06-011-14/+14
|
* Move human-friendly format functions to netlib.human, remove redundant ↵Aldo Cortesi2016-05-311-2/+2
| | | | implementations
* fix testsMaximilian Hils2016-05-281-1/+1
|
* A clearer implementation of MultiDictViewAldo Cortesi2016-05-211-7/+13
| | | | | | 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.
* improve MultiDict, add ImmutableMultiDict, adjust response.cookiesMaximilian Hils2016-05-181-24/+21
|
* add MultiDictMaximilian Hils2016-05-181-0/+2
| | | | | | | | 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.
* improve cookie parsingThomas Kriechbaumer2016-05-101-10/+0
| | | | | allows '/' to be within a cookie name removes deprecated cookie getter/setter fixes #1118
* Merge pull request #1074 from mitmproxy/move-response-refreshThomas Kriechbaumer2016-04-031-0/+34
|\ | | | | move HTTPResponse.refresh into netlib
| * move HTTPResponse.refresh into netlibMaximilian Hils2016-04-021-0/+34
| |
* | response.msg -> response.reasonMaximilian Hils2016-04-021-10/+0
|/
* add Serializeable.copyMaximilian Hils2016-04-021-2/+1
|
* s/nocover/no cover/gThomas Kriechbaumer2016-03-271-4/+4
| | | according to coveralls docs
* combine projectsMaximilian Hils2016-02-181-0/+116