Sha256: 040bb89b346b933468eec56d49c07926bdc1916a9dc6e178fb4152fc497fdb95

Contents?: true

Size: 853 Bytes

Versions: 1

Compression:

Stored size: 853 Bytes

Contents

# -*- encoding: binary -*-

module Rainbows

  module Const
    RAINBOWS_VERSION = '0.90.1'

    include Unicorn::Const

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

      # using the Rev model, we'll automatically chunk pipe and socket objects
      # if they're the response body.  Unset by default.
      # "rainbows.autochunk" => false,
    })

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

    # client IO object that supports reading and writing directly
    # without filtering it through the HTTP chunk parser.
    # Maybe we can get this renamed to "rack.io" if it becomes part
    # of the official spec, but for now it is "hack.io"
    CLIENT_IO = "hack.io".freeze

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rainbows-0.90.1 lib/rainbows/const.rb