Skip to content

Instantly share code, notes, and snippets.

@mtgto
Created May 8, 2014 05:47
Show Gist options
  • Save mtgto/a12bd1e66009aec86fe8 to your computer and use it in GitHub Desktop.
Save mtgto/a12bd1e66009aec86fe8 to your computer and use it in GitHub Desktop.
simple HTTP server
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