Skip to content

Instantly share code, notes, and snippets.

@rkh
Forked from anildigital/gist:382361
Created May 4, 2010 12:29
Show Gist options
  • Save rkh/389349 to your computer and use it in GitHub Desktop.
Save rkh/389349 to your computer and use it in GitHub Desktop.
# Simple rack app
require 'rubygems'
require 'thin'
app = Proc.new{ [200, { "Content-Type" => "text/html"}, ["Hello World"]]}
with_middleware = MyMiddleware.new app
Rack::Handler::Thin.run(with_middleware, :Port => 4000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment