Rainbows! 0.91.1 - use a less-broken parser from Unicorn
[rainbows.git] / lib / rainbows / const.rb
blob99fb257c773be1711de52065b43ea6127af0f1f0
1 # -*- encoding: binary -*-
3 module Rainbows
5   module Const
6     RAINBOWS_VERSION = '0.91.1'
8     include Unicorn::Const
10     RACK_DEFAULTS = Unicorn::HttpRequest::DEFAULTS.update({
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.  Unset by default.
15       # "rainbows.autochunk" => false,
16     })
18     CONN_CLOSE = "Connection: close\r\n"
19     CONN_ALIVE = "Connection: keep-alive\r\n"
20     LOCALHOST = Unicorn::HttpRequest::LOCALHOST
22     # client IO object that supports reading and writing directly
23     # without filtering it through the HTTP chunk parser.
24     # Maybe we can get this renamed to "rack.io" if it becomes part
25     # of the official spec, but for now it is "hack.io"
26     CLIENT_IO = "hack.io".freeze
28   end
29 end