aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http
Commit message (Collapse)AuthorAgeFilesLines
* Modify format_set_cookie_header to take cookie listShadab Zafar2016-09-272-15/+24
| | | | and return a comma separated string of cookies
* Fixup an error with indicesShadab Zafar2016-09-271-1/+1
|
* Refactor functionsShadab Zafar2016-09-271-35/+26
|
* Add a new pairs reader for SetCookie headersShadab Zafar2016-09-271-3/+15
|
* Rename _read_pairs to _read_cookie_pairsShadab Zafar2016-09-271-3/+22
| | | | We will have a separate _read_set_cookie_pairs
* Rename _read_token to _read_keyShadab Zafar2016-09-271-8/+8
| | | | Since we also have a _read_value
* Move CookieAttrs and SetCookie to topShadab Zafar2016-09-271-18/+14
|
* Minor refactorShadab Zafar2016-09-271-2/+3
|
* Add support for comma separated cookiesShadab Zafar2016-09-271-30/+51
|
* Merge pull request #1564 from mhils/issue-1554Maximilian Hils2016-09-211-9/+10
|\ | | | | Fix Response.make content-length header
| * fix Response.make content-length headerMaximilian Hils2016-09-211-9/+10
| |
* | raise TypeError on invalid header assignment, fix #1562Maximilian Hils2016-09-211-0/+1
|/
* http2: improve framereaderThomas Kriechbaumer2016-09-032-5/+10
|
* Lint fix - minorarjun234962016-08-311-2/+1
|
* Lint fix - netlib headersarjun234962016-08-311-4/+2
|
* minor bug fix header replacearjun234962016-08-311-3/+7
|
* Added tests for replace in request,message,headerarjun234962016-08-311-0/+2
|
* Minor bug fix - messages.py replacearjun234962016-08-291-1/+1
|
* Added replace for request and headers - Fixed missing replace optionarjun234962016-08-292-5/+6
|
* Added count argument for replace for contents in bodyarjun234962016-08-261-2/+2
|
* wrap long linesThomas Kriechbaumer2016-08-242-4/+24
|
* introduce Response.make for simple response creationMaximilian Hils2016-08-231-5/+49
|
* Merge pull request #1480 from mhils/reverse-proxy-authThomas Kriechbaumer2016-08-161-3/+13
|\ | | | | Add basic auth support for reverse proxy mode
| * add basic auth support for reverse proxy modeMaximilian Hils2016-08-131-3/+13
| |
* | 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
|/