Created
April 5, 2015 09:28
-
-
Save yasaichi/32bc9d7a6e86f0b62817 to your computer and use it in GitHub Desktop.
パーフェクト Ruby on Rails 10章
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
require './basic_auth' | |
App = lambda do |env| | |
[200, { "Content-Type" => "text/html" }, ["Hello, Rack world!"]] | |
end | |
use BasicAuth, user_name: 'test:user', password: 'pass' | |
run App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment