aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/http1
Commit message (Collapse)AuthorAgeFilesLines
* fix-1366Thomas Kriechbaumer2016-07-161-3/+2
|
* 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.
* Utils cleanupsAldo Cortesi2016-06-071-2/+2
| | | | | | | | - Move more stuff that belongs in netlib.human - Move some stuff to near the only use - Zap mitmproxy.utils.timestamp(). I see the rationale, but we used it interchangeably with time.time() throughout the project. Since time.time() dominates in the codebase and timestamp() is such low utility, away it goes.
* Fix test that may fail due to binary header dataAldo Cortesi2016-06-051-1/+3
| | | | | | | | This is just inherently not a determinisitc test. We don't use the log HTTP interface any more, so it can just go. A more radical "solution" is inbound shortly. Fixes #1207
* Reorganise netlib imports according to Google Style GuideAldo Cortesi2016-06-012-41/+43
|
* netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokensAldo Cortesi2016-05-311-1/+13
| | | | Placing this next to its only use.
* Module is part of the name - url.decode, not url.urldecodeAldo Cortesi2016-05-311-1/+1
| | | | 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-1/+2
|
* netlib: fix most flake8 offensesThomas Kriechbaumer2016-05-281-0/+1
|
* cleanup imports with flake8Thomas Kriechbaumer2016-05-281-1/+0
|
* add MultiDictMaximilian Hils2016-05-181-2/+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.
* update commentsMatthew Shao2016-03-261-4/+4
|
* replace CONTENT_MISSING with None.Matthew Shao2016-03-261-6/+4
|
* combine projectsMaximilian Hils2016-02-183-0/+491