aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/odict.py
Commit message (Collapse)AuthorAgeFilesLines
* python3++Maximilian Hils2015-09-171-22/+3
|
* add move tests and code from mitmproxyThomas Kriechbaumer2015-08-101-1/+2
|
* http2: improve protocolThomas Kriechbaumer2015-07-301-2/+5
|
* cleanup code with autopep8Thomas Kriechbaumer2015-05-271-3/+7
| | | | run the following command: $ autopep8 -i -r -a -a .
* ODict improvementsAldo Cortesi2015-04-151-6/+19
| | | | | | | | - Setting values now tries to preserve the existing order, rather than just appending to the end. - __repr__ now returns a repr of the tuple list. The old repr becomes a .format() method. This is clearer, makes troubleshooting easier, and doesn't assume all data in ODicts are header-like
* odict: don't convert values to strings when addedAldo Cortesi2015-04-141-2/+2
|
* Add an .extend method for ODictsAldo Cortesi2015-04-141-0/+6
|
* fix code smellMaximilian Hils2015-04-091-1/+1
|
* fix #53Maximilian Hils2015-02-271-1/+1
|
* Short-form getstateAldo Cortesi2014-09-171-1/+1
|
* Adjust for state object protocol changes in mitmproxy.Aldo Cortesi2014-09-171-10/+12
|
* make inequality comparison workMaximilian Hils2014-09-041-0/+3
|
* minor cleanupsMaximilian Hils2014-08-161-0/+1
|
* make error message example less abstract.Maximilian Hils2014-03-311-1/+1
|
* Instead of removing the error, for consistency, leaving the error as-wasPedro Worcel2014-03-311-3/+2
| | | | | and replaced the message with something that may or may not be more understandable :P
* Change error into awesome user-friendlynessPedro Worcel2014-03-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | Hi there, I was getting a very weird error "ODict valuelist should be lists", when attempting to add a header. My code was as followed: ``` msg.headers["API-Key"] = new_headers["API-Key"] 42 msg.headers["API-Sign"] = new_headers["API-Sign"] ``` In the end, that was because there could be multiple equal headers. In order to cater to that, it you guys might enjoy the patch I attach, for it converts strings automatically into lists of multiple headers. I think it should work, but I haven't tested it :$ It'd allow me to have the above code, instead of this one below: ``` msg.headers["API-Key"] = [new_headers["API-Key"]] 42 msg.headers["API-Sign"] = [new_headers["API-Sign"]] ```
* Re-add state operations to ODict.Aldo Cortesi2014-03-021-0/+10
|
* Cleanups, tests, and no-cover directives for code sections we can't test.Aldo Cortesi2014-03-021-10/+0
|
* move StateObject back into libmproxyMaximilian Hils2014-01-311-2/+1
|
* remove subclassing of tuple in tcp.Address, move StateObject into netlibMaximilian Hils2014-01-301-1/+6
|
* ODict.keysAldo Cortesi2013-02-281-0/+3
|
* add __iter__ for odictMaximilian Hils2012-12-051-0/+3
|
* Add a get_first convenience function to ODict.Aldo Cortesi2012-08-181-0/+6
|
* Initial checkin.Aldo Cortesi2012-06-191-0/+160