class HttpRefreshServlet

Public Instance Methods

do_GET(req, res) click to toggle source
# File lib/mechanize/test_case/http_refresh_servlet.rb, line 2
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