Sha256: 9485f1d1706ecd4e6b3b1a615681d0972c04080ef76d18107520e7b9ce2b41b3
Contents?: true
Size: 714 Bytes
Versions: 4
Compression:
Stored size: 714 Bytes
Contents
# Run with: rackup -s thin # then browse to http://localhost:9292 # Or with: thin start -R config.ru # then browse to http://localhost:3000 # # Check Rack::Builder doc for more details on this file format: # http://rack.rubyforge.org/doc/classes/Rack/Builder.html require File.dirname(__FILE__) + '/../lib/thin' app = proc do |env| # Response body has to respond to each and yield strings # See Rack specs for more info: http://rack.rubyforge.org/doc/files/SPEC.html body = ['hi!'] [ 200, # Status code { 'Content-Type' => 'text/html' }, # Reponse headers body # Body of the response ] end run app
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
grockit-thin-0.8.2 | example/config.ru |
macournoyer-thin-1.0.1 | example/config.ru |
macournoyer-thin-1.1.0 | example/config.ru |
thin-1.0.0 | example/config.ru |