Sha256: 705c7a380e8598a16cbccf471098c9307f1d95c69f706caa07c597351602c973

Contents?: true

Size: 1.68 KB

Versions: 7

Compression:

Stored size: 1.68 KB

Contents

module Goliath
  # Constants used by the system to access data.
  module Constants
    INITIAL_BODY = ''
    # Force external_encoding of request's body to ASCII_8BIT
    INITIAL_BODY.encode!(Encoding::ASCII_8BIT) if INITIAL_BODY.respond_to?(:encode)

    SERVER_SOFTWARE = 'SERVER_SOFTWARE'
    SERVER          = 'Goliath'

    HTTP_PREFIX     = 'HTTP_'
    LOCALHOST       = 'localhost'
    STATUS          = 'status'
    CONFIG          = 'config'
    OPTIONS         = 'options'

    RACK_INPUT      = 'rack.input'
    RACK_VERSION    = 'rack.version'
    RACK_ERRORS     = 'rack.errors'
    RACK_MULTITHREAD = 'rack.multithread'
    RACK_MULTIPROCESS = 'rack.multiprocess'
    RACK_RUN_ONCE   = 'rack.run_once'
    RACK_VERSION_NUM = [1, 0]
    RACK_LOGGER     = 'rack.logger'
    RACK_EXCEPTION  = 'rack.exception'

    ASYNC_CALLBACK  = 'async.callback'
    ASYNC_HEADERS   = 'async.headers'
    ASYNC_BODY      = 'async.body'
    ASYNC_CLOSE     = 'async.close'

    STREAM_START    = 'stream.start'
    STREAM_SEND     = 'stream.send'
    STREAM_CLOSE    = 'stream.close'

    SERVER_NAME     = 'SERVER_NAME'
    SERVER_PORT     = 'SERVER_PORT'
    SCRIPT_NAME     = 'SCRIPT_NAME'
    REMOTE_ADDR     = 'REMOTE_ADDR'
    CONTENT_LENGTH  = 'CONTENT_LENGTH'
    CONTENT_TYPE    = 'CONTENT_TYPE'
    REQUEST_METHOD  = 'REQUEST_METHOD'
    REQUEST_URI     = 'REQUEST_URI'
    QUERY_STRING    = 'QUERY_STRING'
    HTTP_VERSION    = 'HTTP_VERSION'
    REQUEST_PATH    = 'REQUEST_PATH'
    PATH_INFO       = 'PATH_INFO'
    FRAGMENT        = 'FRAGMENT'
    CONNECTION      = 'CONNECTION'
    UPGRADE_DATA    = 'UPGRADE_DATA'

    GOLIATH_ENV     = 'goliath.env'
    GOLIATH_SIGNATURE = 'goliath.signature'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
goliath-1.0.5 lib/goliath/constants.rb
goliath-1.0.4 lib/goliath/constants.rb
goliath-1.0.3 lib/goliath/constants.rb
goliath-1.0.2 lib/goliath/constants.rb
goliath-1.0.1 lib/goliath/constants.rb
goliath-1.0.0 lib/goliath/constants.rb
goliath-1.0.0.beta.1 lib/goliath/constants.rb