diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-02 20:44:03 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-02 21:21:28 -0700 |
commit | 37a12997628fcab722512f8a6370b92d44e33529 (patch) | |
tree | 9ced4ceaee3d4d6ce21dd1742f037d1d79a01e61 /lib/rainbows/const.rb | |
download | rainbows-37a12997628fcab722512f8a6370b92d44e33529.tar.gz |
No tests yet, but the old "gossamer" and "rainbows" branches seem to be basically working.
Diffstat (limited to 'lib/rainbows/const.rb')
-rw-r--r-- | lib/rainbows/const.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/rainbows/const.rb b/lib/rainbows/const.rb new file mode 100644 index 0000000..9606b80 --- /dev/null +++ b/lib/rainbows/const.rb @@ -0,0 +1,22 @@ +module Rainbows + + module Const + RAINBOWS_VERSION = '0.93.0' + + include Unicorn::Const + + RACK_DEFAULTS = ::Unicorn::HttpRequest::DEFAULTS.merge({ + + # we need to observe many of the rules for thread-safety even + # with Revactor or Rev, so we're considered multithread-ed even + # when we're not technically... + "rack.multithread" => true, + "SERVER_SOFTWARE" => "Rainbows #{RAINBOWS_VERSION}", + }) + + CONN_CLOSE = "Connection: close\r\n" + CONN_ALIVE = "Connection: keep-alive\r\n" + LOCALHOST = "127.0.0.1" + + end +end |