Skip to content

Instantly share code, notes, and snippets.

@stevenabrooks
Created June 20, 2013 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenabrooks/5822340 to your computer and use it in GitHub Desktop.
Save stevenabrooks/5822340 to your computer and use it in GitHub Desktop.
require 'rack'
class StevenApp
def call(env)
p env['PATH_INFO']
p env['HTTP_ACCEPT']
[200, {'Content-Type' => 'text/html'},
['<h1>Hello <a style="color: pink" href="http://students.flatironschool.com/students/stevenbrooks.html">Steven</a></h1>']]
end
end
Rack::Handler::WEBrick.run(StevenApp.new, {:Port => 4000})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment