Sha256: 42b2e89632b5a537468ae830dfd99ff55d31f4a3ab2b2b585d8794224f7a3c01

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

module Jubilee
  module Const
    JUBILEE_VERSION = VERSION = "0.2.1".freeze
    HTTP_11 = "HTTP/1.1".freeze
    HTTP_10 = "HTTP/1.0".freeze

    SERVER_SOFTWARE = "SERVER_SOFTWARE".freeze
    SERVER_PROTOCOL = "SERVER_PROTOCOL".freeze
    GATEWAY_INTERFACE = "GATEWAY_INTERFACE".freeze
    SERVER_NAME = "SERVER_NAME".freeze
    SERVER_PORT = "SERVER_PORT".freeze

    CGI_VER = "CGI/1.2".freeze

    RACK_INPUT = "rack.input".freeze

    REQUEST_METHOD = 'REQUEST_METHOD'.freeze
    GET = 'GET'.freeze
    POST = "POST".freeze
    REQUEST_PATH = "REQUEST_PATH".freeze
    REQUEST_URI = "REQUEST_URI".freeze
    PATH_INFO = "PATH_INFO".freeze
    QUERY_STRING = "QUERY_STRING".freeze

    CONTENT_LENGTH = "Content-Length".freeze
    TRANSFER_ENCODING = "Transfer-Encoding".freeze

    HTTP_VERSION = "HTTP_VERSION".freeze
    HTTP_HOST = "HTTP_HOST".freeze
    HTTP_USER_AGENT = "HTTP_USER_AGENT".freeze
    HTTP_ACCEPT = "HTTP_ACCEPT".freeze
    HTTP_COOKIE = "HTTP_COOKIE".freeze
    HTTP_ACCEPT_LANGUAGE = "HTTP_ACCEPT_LANGUAGE".freeze
    HTTP_ACCEPT_ENCODING = "HTTP_ACCEPT_ENCODING".freeze
    HTTP_CONNECTION = "HTTP_CONNECTION".freeze
    NEWLINE = "\n".freeze

    STATUS_WITH_NO_ENTITY_BODY = Hash[Rack::Utils::STATUS_WITH_NO_ENTITY_BODY.map{|s| [s, true]}]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jubilee-0.2.2 lib/jubilee/const.rb
jubilee-0.2.1 lib/jubilee/const.rb