Created
March 17, 2018 22:03
-
-
Save veronicacannon/3d70ed0e1fbba424640483564e1f01f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://thoughtbot.com/upcase/videos/rack | |
require "rack" | |
require "thin" | |
class HelloWorld | |
def call(env) | |
[ 200, { "Content-Type" => "text/plain" }, ["Hello World"] ] | |
end | |
end | |
Rack::Handler::Thin.run HelloWorld.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment