rev: async response bodies with DevFdResponse middleware
[rainbows.git] / lib / rainbows / const.rb
blob403a18a80496d4f96d126b4f246550b56736049e
1 # -*- encoding: binary -*-
3 module Rainbows
5   module Const
6     RAINBOWS_VERSION = '0.2.0'
8     include Unicorn::Const
10     RACK_DEFAULTS = ::Unicorn::HttpRequest::DEFAULTS.merge({
11       "SERVER_SOFTWARE" => "Rainbows! #{RAINBOWS_VERSION}",
13       # using the Rev model, we'll automatically chunk pipe and socket objects
14       # if they're the response body
15       'rainbows.autochunk' => false,
16     })
18     CONN_CLOSE = "Connection: close\r\n"
19     CONN_ALIVE = "Connection: keep-alive\r\n"
20     LOCALHOST = "127.0.0.1"
22   end
23 end