1 # -*- encoding: binary -*-
6 RAINBOWS_VERSION = '0.93.0'
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,
18 CONN_CLOSE = "Connection: close\r\n"
19 CONN_ALIVE = "Connection: keep-alive\r\n"
21 # client IO object that supports reading and writing directly
22 # without filtering it through the HTTP chunk parser.
23 # Maybe we can get this renamed to "rack.io" if it becomes part
24 # of the official spec, but for now it is "hack.io"
25 CLIENT_IO = "hack.io".freeze
27 ERROR_413_RESPONSE = "HTTP/1.1 413 Request Entity Too Large\r\n\r\n"