Sha256: 4a417a321c01c83f0afd2c76e5af2b2a6b85c10e58747b550490eabd776f1df7
Contents?: true
Size: 320 Bytes
Versions: 9
Compression:
Stored size: 320 Bytes
Contents
class HttpRefreshServlet < WEBrick::HTTPServlet::AbstractServlet def do_GET(req, res) res['Content-Type'] = req.query['ct'] || "text/html" refresh_time = req.query['refresh_time'] || 0 refresh_url = req.query['refresh_url'] || '/' res['Refresh'] = " #{refresh_time};url=#{refresh_url}\r\n"; end end
Version data entries
9 entries across 9 versions & 1 rubygems