Re:Show HN: Pump, a dead simple Pythonic abstraction of HTTP.
by collint on Tuesday July 26, 2011 @10:52PM
(#2810526)
The Rack style API is nice for the simplicity. I <3 it.
The Rack style api is NOT a great representation of the HTTP protocol. Specifically anything with a streaming or chunked response.
start_response/yield may not be the absolute best API for this, I haven't thought to much about that. But if you go look into what was done in Rails 3.1 for chunked responses you may realize it's not actually too great.
The Rack style api is NOT a great representation of the HTTP protocol. Specifically anything with a streaming or chunked response.
start_response/yield may not be the absolute best API for this, I haven't thought to much about that. But if you go look into what was done in Rails 3.1 for chunked responses you may realize it's not actually too great.