This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author demian.brecht
Recipients demian.brecht
Date 2015-01-28.02:04:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422410696.55.0.10985599454.issue23334@psf.upfronthosting.co.za>
In-reply-to
Content
This is an attempt to bring a little more sanity to the http.client module through improvements to the architecture. The overarching intention of the patch is to modularize the HTTP versions, providing the following benefits:

* Make each protocol easier to work on independent of one another
* Make integrating future versions easier. This is intended as a stepping stone to integrating support for HTTP 2
* Separation of concerns between connection and application protocol

Immediate issues that this solves:
* Content-Length when a list is passed in. Currently the content length is set to the size of the list rather than the sum of the elements of the list
* Provides a little more user-friendly errors when invalid objects are passed in as header values


Note: This is still in a WIP progress state but shouldn't take much longer to get into a commit-able state. There's some work to be done on deserialization and it's entirely documentation. However, tests are passing so I figured now would be a good time to get initial feedback on the work. In hindsight, a PEP would likely have been best (it was initially intended to be put into httplib3, but I thought I might as well try it as a patch submission given it's largely backwards compatible).
History
Date User Action Args
2015-01-28 02:04:58demian.brechtsetrecipients: + demian.brecht
2015-01-28 02:04:56demian.brechtsetmessageid: <1422410696.55.0.10985599454.issue23334@psf.upfronthosting.co.za>
2015-01-28 02:04:56demian.brechtlinkissue23334 messages
2015-01-28 02:04:55demian.brechtcreate