perplexes / m2r

Mongrel2 Connection Adapter - Ruby Encrusted Steel-Reinforced Fist
MIT License
90 stars 11 forks source link

Allow to send HTTP/1.0 response ? #50

Closed paneq closed 11 years ago

paneq commented 12 years ago

Currently our responses are HTTP/1.1 hardcoded. What if framework working on top of our library is HTTP/1.0 compatible only ? Is that possible ?

mostlyobvious commented 12 years ago

Although not explicitly stated in features, should be possible. That probably boils down to keep-alives and explicitly closing connection by handler.

More on this topic: http://librelist.com/browser//mongrel2/2012/3/2/mongrel2-and-http-headers/#5dda3ad796ff5fc73fb6b75a9932105c

@paneq What's the benefit of supporting RFC predating HTTP/1.1 (which is 13 years old)?

paneq commented 12 years ago

So basically #43 ?

@pawelpacana I am not sure. That's why there is ? in the ticket. Are there still some serious clients using 1.0 ?

mostlyobvious commented 12 years ago

Maybe let's check how popular mobile clients present themself since in logs of one of my application I observe lots of HTTP/1.0.