aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/message.py
Commit message (Collapse)AuthorAgeFilesLines
* Integrated encode/decoder for brotliAngelo Agatino Nicolosi2016-07-301-1/+1
|
* remove content caching in netlib.http.MessageMaximilian Hils2016-07-231-84/+31
|
* fix content view cache invalidationMaximilian Hils2016-07-211-6/+0
|
* Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-151-1/+1
|\
| * py3++Maximilian Hils2016-07-071-0/+3
| |
* | improve message content semanticsMaximilian Hils2016-07-151-52/+81
| |
* | raise ValueError if content-encoding is invalidMaximilian Hils2016-07-041-13/+29
| |
* | tests++Maximilian Hils2016-07-021-3/+3
| |
* | make the linter happyMaximilian Hils2016-07-021-1/+1
| |
* | message.content -> .raw_content, implement .textMaximilian Hils2016-07-021-60/+132
|/ | | | | | | | | | | | | | | 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.
* py3++Maximilian Hils2016-07-011-2/+6
|
* Utils reorganisation: add netlib.strutilsAldo Cortesi2016-06-021-3/+3
| | | | Extract a number of string and format-related functions to netlib.strutils.
* Reorganise netlib imports according to Google Style GuideAldo Cortesi2016-06-011-2/+2
|
* Start cleaning up netlib.utilsAldo Cortesi2016-05-311-9/+8
| | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes
* netlib: fix most flake8 offensesThomas Kriechbaumer2016-05-281-5/+12
|
* cleanup imports with flake8Thomas Kriechbaumer2016-05-281-1/+0
|
* Merge branch 'issue-1099'Maximilian Hils2016-05-201-0/+6
|\
| * fix #1099Maximilian Hils2016-05-201-0/+6
| |
* | A clearer implementation of MultiDictViewAldo Cortesi2016-05-211-69/+0
|/ | | | | | 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 Hils2016-05-201-1/+1
|
* improve MultiDict, add ImmutableMultiDict, adjust response.cookiesMaximilian Hils2016-05-181-3/+38
|
* add MultiDictMaximilian Hils2016-05-181-0/+35
| | | | | | | | 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 .replace() and move it into netlibMaximilian Hils2016-04-021-0/+19
|
* add Serializeable.copyMaximilian Hils2016-04-021-3/+1
|
* s/nocover/no cover/gThomas Kriechbaumer2016-03-271-3/+3
| | | according to coveralls docs
* replace CONTENT_MISSING with None.Matthew Shao2016-03-261-2/+0
|
* Setting CONTENT_MISSING to NoneMatthew Shao2016-03-261-1/+1
|
* combine projectsMaximilian Hils2016-02-181-0/+222