Created
April 4, 2012 17:44
-
-
Save purplefox/2304194 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Ruby folks, what do you prefer: | |
require "vertx" | |
Vertx::HttpServer.new.request_handler do |req| | |
req.response.send_file("index.html") | |
end.listen(80) | |
or | |
Vertx.create_http_server.request_handler do |req| | |
req.response.send_file("index.html") | |
end.listen(80) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment