Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
22 lines (19 sloc) 0.68 kb
# Run with: rackup -s thin
# then browse to http://localhost:9292
# Or with: thin start -R
# then browse to http://localhost:3000
# Check Rack::Builder doc for more details on this file format:
require 'thin'
app = proc do |env|
# Response body has to respond to each and yield strings
# See Rack specs for more info:
body = ['hi!']
200, # Status code
{ 'Content-Type' => 'text/html' }, # Reponse headers
body # Body of the response
run app
Jump to Line
Something went wrong with that request. Please try again.