Created
May 8, 2014 05:47
-
-
Save mtgto/a12bd1e66009aec86fe8 to your computer and use it in GitHub Desktop.
simple HTTP server
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 'webrick' | |
include WEBrick | |
s = HTTPServer.new(:Port => 10080) | |
s.mount_proc('/') do |req, res| res.body = 'hogehoge' end | |
s.start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment