# Copyright (C) 2001 John W. Small All Rights Reserved # mailto:jsmall@laser.net subject:ruby-generic-server # Freeware require 'GServer' require 'timeout' class HttpEchoServer < GServer def serve(io) io.puts("HTTP/1.0 200 Echo follows!") io.puts("Connection: close") io.puts("Content-Type: text/html") io.puts io.puts("
") io.puts("