1 # -*- encoding: binary -*-
5 RAINBOWS_VERSION = '2.1.0'
9 RACK_DEFAULTS = Unicorn::HttpRequest::DEFAULTS.update({
10 "SERVER_SOFTWARE" => "Rainbows! #{RAINBOWS_VERSION}",
12 # using the Rev model, we'll automatically chunk pipe and socket objects
13 # if they're the response body. Unset by default.
14 # "rainbows.autochunk" => false,
17 # client IO object that supports reading and writing directly
18 # without filtering it through the HTTP chunk parser.
19 # Maybe we can get this renamed to "rack.io" if it becomes part
20 # of the official spec, but for now it is "hack.io"
21 CLIENT_IO = "hack.io".freeze
23 ERROR_413_RESPONSE = "HTTP/1.1 413 Request Entity Too Large\r\n\r\n"
24 ERROR_416_RESPONSE = "HTTP/1.1 416 Requested Range Not Satisfiable\r\n\r\n"
26 RACK_INPUT = Unicorn::HttpRequest::RACK_INPUT
27 REMOTE_ADDR = Unicorn::HttpRequest::REMOTE_ADDR