aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/multidict.py
Commit message (Collapse)AuthorAgeFilesLines
* remove empty lines at beginning of fileThomas Kriechbaumer2016-10-171-1/+0
|
* python3: clean up super and __future__Aldo Cortesi2016-10-171-4/+6
|
* First-order conversion to Python3-onlyAldo Cortesi2016-10-171-5/+2
| | | | | | - 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.
* fix content view cache invalidationMaximilian Hils2016-07-211-3/+3
|
* py3++, multidict fixesMaximilian Hils2016-07-061-17/+7
| | | | | | | | | | | | 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.
* Remove odictAldo Cortesi2016-06-091-0/+8
| | | | | | | | - 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
* Now keeps header capitalizationredfast002016-06-051-1/+1
|
* Fix non-deterministic test failures in exportAldo Cortesi2016-06-021-6/+18
| | | | | We had various places in the code where we relied on incidental order of dict keys. Add a helper to multidict, and fix.
* Reorganise netlib imports according to Google Style GuideAldo Cortesi2016-06-011-1/+1
|
* Start cleaning up netlib.utilsAldo Cortesi2016-05-311-3/+2
| | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes
* Improve handling of pseudo-headersAldo Cortesi2016-05-311-0/+8
| | | | | | | | | - The canonical source for :method, :scheme and :path are the .method, .scheme and .path attributes on the request object. - These pseudo-headers are stripped after reading the request, and re-inserted just before sending. - The :authority header remains, and should be handled analagously to the Host header in HTTP1 with respect to display and user interaction.
* minor improvementsMaximilian Hils2016-05-281-4/+4
|
* cleanup imports with flake8Thomas Kriechbaumer2016-05-281-1/+0
|
* Fix crash in mitmproxy when viewing responsesAldo Cortesi2016-05-281-1/+3
|
* Merge branch 'issue-1099'Maximilian Hils2016-05-201-0/+3
|\
| * fix #1099Maximilian Hils2016-05-201-0/+3
| |
* | A clearer implementation of MultiDictViewAldo Cortesi2016-05-211-9/+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.
* tests++Maximilian Hils2016-05-201-3/+11
|
* improve MultiDict, add ImmutableMultiDict, adjust response.cookiesMaximilian Hils2016-05-181-163/+240
|
* add MultiDictMaximilian Hils2016-05-181-0/+163
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.