aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http
Commit message (Collapse)AuthorAgeFilesLines
* Simplify cookies.is_expiredShadab Zafar2016-08-151-16/+7
|
* Add a function to get cookie expiration timeShadab Zafar2016-08-151-0/+26
|
* Add method to group pairs by cookiesShadab Zafar2016-08-151-0/+31
|
* fix testsMaximilian Hils2016-08-041-0/+1
|
* simplify contentview logicMaximilian Hils2016-08-041-0/+1
|
* Integrated encode/decoder for brotliAngelo Agatino Nicolosi2016-07-302-2/+2
|
* improve query/path_components getter/setterMaximilian Hils2016-07-242-19/+49
|
* remove content caching in netlib.http.MessageMaximilian Hils2016-07-231-84/+31
|
* fix test_view_urlencodedMaximilian Hils2016-07-231-0/+1
|
* fix content view cache invalidationMaximilian Hils2016-07-211-6/+0
|
* fix-1366Thomas Kriechbaumer2016-07-161-3/+2
|
* Merge pull request #1306 from mitmproxy/message-body-encodingMaximilian Hils2016-07-165-79/+213
|\ | | | | Improve Message Body Encoding
| * preserve content-type parameter orderMaximilian Hils2016-07-151-1/+2
| |
| * Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-157-2/+96
| |\
| * | improve message content semanticsMaximilian Hils2016-07-152-52/+93
| | |
| * | raise ValueError if content-encoding is invalidMaximilian Hils2016-07-042-16/+38
| | |
| * | tests++Maximilian Hils2016-07-021-3/+3
| | |
| * | make the linter happyMaximilian Hils2016-07-021-1/+1
| | |
| * | message.content -> .raw_content, implement .textMaximilian Hils2016-07-024-66/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | replacehooks -> addonAldo Cortesi2016-07-161-2/+2
| |/ |/| | | | | | | Also fixes a bug in header replacements in netlib that resulted in a mutable multidict.
* | Test cookies.is_expired separatelyShadab Zafar2016-07-101-4/+9
| |
* | Move cookie expiry detection to separate functionShadab Zafar2016-07-091-1/+23
| |
* | py3++Maximilian Hils2016-07-073-1/+23
| |
* | py3++, multidict fixesMaximilian Hils2016-07-062-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | This commit improves Python 3 compatibility and fixes two multidict issues: 1. Headers.items(multi=True) now decodes fields 2. MultiDict.clear(item) has been removed, as Python's MutableMapping already defines .clear() with different semantics. This is confusing for everyone who expects a dict-like object. `.pop("attr", None)` is not fantastic, but it's the Python way to do it.
* | py3: fix bytes vs. strThomas Kriechbaumer2016-07-031-4/+4
| |
* | h2: move header parsing to netlibShadab Zafar2016-07-032-0/+39
|/
* fix tcp message handlingMaximilian Hils2016-07-011-1/+3
|
* py3++Maximilian Hils2016-07-013-7/+17
|
* Handle case when scheme is NoneShadab Zafar2016-07-011-1/+1
|
* http2: improve error handling in testsThomas Kriechbaumer2016-06-221-1/+2
|
* move custom HTTP/2 stack from netlib to pathodThomas Kriechbaumer2016-06-172-434/+0
|
* Py3: fix http2 bytes issueShadab Zafar2016-06-151-2/+2
|
* 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
* Utils cleanupsAldo Cortesi2016-06-072-3/+16
| | | | | | | | - 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.
* minor fixesMaximilian Hils2016-06-062-5/+5
|
* 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
* Utils reorganisation: add netlib.strutilsAldo Cortesi2016-06-023-7/+7
| | | | Extract a number of string and format-related functions to netlib.strutils.
* Merge pull request #1183 from mitmproxy/module-importsAldo Cortesi2016-06-011-1/+3
|\ | | | | use module-level imports only
| * use module-level imports onlyMaximilian Hils2016-05-311-1/+3
| |
* | Reorganise netlib imports according to Google Style GuideAldo Cortesi2016-06-0112-112/+117
|/
* be more strict about module namespacesMaximilian Hils2016-05-311-4/+4
|
* Fix tests harderAldo Cortesi2016-05-311-2/+2
|
* http2.frame -> http2.framereaderAldo Cortesi2016-05-311-0/+0
|
* Satisfy flake8Aldo Cortesi2016-05-312-1/+2
|
* Move human-friendly format functions to netlib.human, remove redundant ↵Aldo Cortesi2016-05-311-2/+2
| | | | implementations
* utils.multipartdecode -> http.multipart.decodeAldo Cortesi2016-05-313-1/+61
| | | | | | also utils.parse_content_type -> http.headers.parse_content_type
* 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-314-15/+15
| | | | 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-314-12/+109
|
* Start cleaning up netlib.utilsAldo Cortesi2016-05-314-39/+60
| | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes