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

Version Path
mechanize-2.7.5 lib/mechanize/test_case/http_refresh_servlet.rb
mechanize-2.7.4 lib/mechanize/test_case/http_refresh_servlet.rb
mechanize-2.7.3 lib/mechanize/test_case/http_refresh_servlet.rb
mechanize-2.7.2 lib/mechanize/test_case/http_refresh_servlet.rb
mechanize-2.7.1 lib/mechanize/test_case/http_refresh_servlet.rb
mechanize-2.7.0 lib/mechanize/test_case/http_refresh_servlet.rb
mechanize-2.6.0 lib/mechanize/test_case/http_refresh_servlet.rb
mechanize-2.5.1 lib/mechanize/test_case/http_refresh_servlet.rb
mechanize-2.5 lib/mechanize/test_case/http_refresh_servlet.rb