Permalink
Browse files

simple_rack.rb app rewritten using Rack gem

  • Loading branch information...
1 parent ea7e279 commit 2496bda9b47d51ae206bbf01a6a45d8f55f08e6c @jcarlosgarcia committed Feb 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 simple_rack2.rb
View
4 simple_rack2.rb
@@ -0,0 +1,4 @@
+require 'rack'
+
+simple_rack = lambda { |env| [200, {"Content-Type" => "text/plain"}, ["Command line argument you typed was: #{ARGV.first}"]] }
+Rack::Handler::WEBrick.run simple_rack, :Port => 8850

0 comments on commit 2496bda

Please sign in to comment.