Rainbows! 2.0.1 - upload pipelining fixes
[rainbows.git] / lib / rainbows / const.rb
blob22e3eea127f26e333d5ac94a806289a5efc701ed
1 # -*- encoding: binary -*-
2 # :enddoc:
3 module Rainbows::Const
5   RAINBOWS_VERSION = '2.0.1'
7   include Unicorn::Const
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,
15   })
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
28 end