Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # my_rack_app.rb
- require 'rack'
- app = Proc.new do |env|
- ['200', {'Content-Type' => 'text/html'}, ['<h1>Hello World</h1>']]
- end
- Rack::Handler::WEBrick.run app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement