aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/request.py
Commit message (Collapse)AuthorAgeFilesLines
* First-order conversion to Python3-onlyAldo Cortesi2016-10-171-16/+10
| | | | | | - 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.
* Added replace for request and headers - Fixed missing replace optionarjun234962016-08-291-3/+3
|
* wrap long linesThomas Kriechbaumer2016-08-241-2/+14
|
* Integrated encode/decoder for brotliAngelo Agatino Nicolosi2016-07-301-1/+1
|
* improve query/path_components getter/setterMaximilian Hils2016-07-241-14/+12
|
* Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-151-0/+12
|\
| * py3++Maximilian Hils2016-07-071-1/+13
| |
* | raise ValueError if content-encoding is invalidMaximilian Hils2016-07-041-3/+9
| |
* | message.content -> .raw_content, implement .textMaximilian Hils2016-07-021-2/+2
|/ | | | | | | | | | | | | | | 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.
* fix tcp message handlingMaximilian Hils2016-07-011-1/+3
|
* py3++Maximilian Hils2016-07-011-3/+7
|
* Handle case when scheme is NoneShadab Zafar2016-07-011-1/+1
|
* minor fixesMaximilian Hils2016-06-061-4/+4
|
* Utils reorganisation: add netlib.strutilsAldo Cortesi2016-06-021-2/+2
| | | | Extract a number of string and format-related functions to netlib.strutils.
* Reorganise netlib imports according to Google Style GuideAldo Cortesi2016-06-011-25/+25
|
* utils.multipartdecode -> http.multipart.decodeAldo Cortesi2016-05-311-1/+2
| | | | | | also utils.parse_content_type -> http.headers.parse_content_type
* Module is part of the name - url.decode, not url.urldecodeAldo Cortesi2016-05-311-9/+9
| | | | A pattern we need to use far more often in the codebase
* Extract url functions from netlib.utils and move to netlib.http.urlAldo Cortesi2016-05-311-9/+10
|
* Start cleaning up netlib.utilsAldo Cortesi2016-05-311-1/+1
| | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes
* more style cleanupThomas Kriechbaumer2016-05-291-2/+2
|
* fix testsMaximilian Hils2016-05-281-1/+1
|
* cleanup imports with flake8Thomas Kriechbaumer2016-05-281-2/+0
|
* A clearer implementation of MultiDictViewAldo Cortesi2016-05-211-19/+40
| | | | | | 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-49/+20
|
* add MultiDictMaximilian Hils2016-05-181-27/+44
| | | | | | | | 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-8/+0
| | | | | allows '/' to be within a cookie name removes deprecated cookie getter/setter fixes #1118
* fix #1120Maximilian Hils2016-05-091-1/+1
|
* fix CONNECT display in upstream modeMaximilian Hils2016-04-201-0/+2
|
* peer_address -> ip_addressMaximilian Hils2016-04-111-0/+1
|
* Merge branch 'better-replace'Maximilian Hils2016-04-031-0/+17
|\
| * improve .replace() and move it into netlibMaximilian Hils2016-04-021-0/+17
| |
* | form_(in|out) -> first_line_formatMaximilian Hils2016-04-021-21/+0
|/
* add Serializeable.copyMaximilian Hils2016-04-021-2/+1
|
* s/nocover/no cover/gThomas Kriechbaumer2016-03-271-14/+14
| | | according to coveralls docs
* netlib: request.path can be NoneMaximilian Hils2016-03-201-1/+4
|
* Merge remote-tracking branch 'duffer/pretty-host'Maximilian Hils2016-02-181-1/+24
|
* combine projectsMaximilian Hils2016-02-181-0/+356