Module: Nut

Defined in:
lib/nut.rb,
lib/nut/codes.rb,
lib/nut/handler.rb,
lib/nut/request.rb,
lib/nut/service.rb,
lib/nut/version.rb,
lib/nut/response.rb,
lib/nut/type_symbols.rb

Overview

Nut Module

Defined Under Namespace

Modules: Handler, Request, Response Classes: Service

Constant Summary collapse

SERVER_NAME =

Server Name (as served back in Response Headers)

'Nut HTTP Server'
CODES =

HTTP Response Codes

{
	100 => 'Continue',
	200 => 'OK',
	301 => 'Moved',
	302 => 'Found',
	304 => 'Not Modified',
	404 => 'Not Found',
	500 => 'Internal Server Error',
	501 => 'Not Implemented',
    505 => 'HTTP Version Not Supported'
}
VERSION =

Version

'1.2.10'
TYPE_SYMBOLS =

Shortcut Symbols for Content-Types

{
	json: 'application/json',
	js: 'application/javascript',
    text: 'text/plain',
    html: 'text/html',
    css: 'text/css'
}