Sha256: 9e5f7fbcaea7830de1be1374245942906b8a5692cfb40e52b3263b04614a23f8

Contents?: true

Size: 315 Bytes

Versions: 6

Compression:

Stored size: 315 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}";
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
mechanize-2.7.7 lib/mechanize/test_case/http_refresh_servlet.rb
husc-0.2.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/http_refresh_servlet.rb
husc-0.2.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/http_refresh_servlet.rb
husc-0.1.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/http_refresh_servlet.rb
husc-0.1.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/test_case/http_refresh_servlet.rb
mechanize-2.7.6 lib/mechanize/test_case/http_refresh_servlet.rb