rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 417a5de39c00f8af66bb1b90c757ab2e600d0ddb 375 bytes (raw)
$ git show v0.2.0:lib/rainbows/const.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
# -*- encoding: binary -*-

module Rainbows

  module Const
    RAINBOWS_VERSION = '0.2.0'

    include Unicorn::Const

    RACK_DEFAULTS = ::Unicorn::HttpRequest::DEFAULTS.merge({
      "SERVER_SOFTWARE" => "Rainbows! #{RAINBOWS_VERSION}",
    })

    CONN_CLOSE = "Connection: close\r\n"
    CONN_ALIVE = "Connection: keep-alive\r\n"
    LOCALHOST = "127.0.0.1"

  end
end

git clone https://yhbt.net/rainbows.git