(続)rubyで最小のwebサーバ
しまった。一回こっきりなら以下の手があった。
require 'socket' s=TCPServer.open(80).accept s.puts "HTTP/1.0 200 OK\nContent-Type: text/plain\n\nhello,world" +s.gets
しまった。一回こっきりなら以下の手があった。
require 'socket' s=TCPServer.open(80).accept s.puts "HTTP/1.0 200 OK\nContent-Type: text/plain\n\nhello,world" +s.gets