Sha256: 64e478bfcdaa712c6b297e8e52b3d4756c366d292a431df1e99c4aeb4115906f
Contents?: true
Size: 618 Bytes
Versions: 30
Compression:
Stored size: 618 Bytes
Contents
require 'rubygems' require 'innate' class Demo Innate.node '/' def index 'Hello, World!' end def empty response.status = 405 '' end end Innate.start do |mw| # Makes sure all requests and responses conform to Rack protocol mw.use Rack::Lint # Avoid showing empty failure pages, give information when it happens. mw.use Rack::ShowStatus # Catch exceptions inside Innate and give nice status info mw.use Rack::ShowExceptions # Log access mw.use Rack::CommonLogger # Reload modified files before request mw.use Rack::Reloader # Start up the application mw.innate end
Version data entries
30 entries across 30 versions & 3 rubygems