Message234866
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). |
|
Date |
User |
Action |
Args |
2015-01-28 02:04:58 | demian.brecht | set | recipients:
+ demian.brecht |
2015-01-28 02:04:56 | demian.brecht | set | messageid: <1422410696.55.0.10985599454.issue23334@psf.upfronthosting.co.za> |
2015-01-28 02:04:56 | demian.brecht | link | issue23334 messages |
2015-01-28 02:04:55 | demian.brecht | create | |
|