aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/response.py
Commit message (Collapse)AuthorAgeFilesLines
* The final piece: netlib -> mitproxy.netAldo Cortesi2016-10-201-192/+0
|
* mitmproxy.types.[basethread,multidict,serializable]Aldo Cortesi2016-10-201-1/+1
|
* netlib.human -> mitmproxy.utils.humanAldo Cortesi2016-10-201-1/+1
|
* remove empty lines at beginning of fileThomas Kriechbaumer2016-10-171-1/+0
|
* python3: clean up super and __future__Aldo Cortesi2016-10-171-2/+1
|
* py2--: inline type infoMaximilian Hils2016-10-161-10/+9
|
* First-order conversion to Python3-onlyAldo Cortesi2016-10-171-4/+3
| | | | | | - Zap various occurrences of Python2 in docs and scripts - Remove six from netlib, and some other places where obvious project-wide search and replace works.
* Modify format_set_cookie_header to take cookie listShadab Zafar2016-09-271-1/+1
| | | | and return a comma separated string of cookies
* fix Response.make content-length headerMaximilian Hils2016-09-211-9/+10
|
* wrap long linesThomas Kriechbaumer2016-08-241-2/+10
|
* introduce Response.make for simple response creationMaximilian Hils2016-08-231-5/+49
|
* 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