diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-11 02:59:32 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-11 03:00:00 -0800 |
commit | 42fbb5d3a6c6488c2015bd81f1a00f1873cfb819 (patch) | |
tree | c30a3518afc62ca836514f070aea584cfdd2f1ec /lib/rainbows/const.rb | |
parent | 1e08dbab5683904ebeab01391eb6cd632ed9732e (diff) | |
download | rainbows-42fbb5d3a6c6488c2015bd81f1a00f1873cfb819.tar.gz |
This exposes a client IO object directly to the underlying application.
Diffstat (limited to 'lib/rainbows/const.rb')
-rw-r--r-- | lib/rainbows/const.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rainbows/const.rb b/lib/rainbows/const.rb index 69e58aa..900c9d9 100644 --- a/lib/rainbows/const.rb +++ b/lib/rainbows/const.rb @@ -19,5 +19,11 @@ module Rainbows CONN_ALIVE = "Connection: keep-alive\r\n" LOCALHOST = "127.0.0.1" + # client IO object that supports reading and writing directly + # without filtering it through the HTTP chunk parser. + # Maybe we can get this renamed to "rack.io" if it becomes part + # of the official spec, but for now it is "hack.io" + CLIENT_IO = "hack.io".freeze + end end |