class RefererServlet

Public Instance Methods

do_GET(req, res) click to toggle source
# File lib/mechanize/test_case/referer_servlet.rb, line 2
def do_GET(req, res)
  res['Content-Type'] = "text/html"
  res.body = req['Referer'] || ''
end
do_POST(req, res) click to toggle source
# File lib/mechanize/test_case/referer_servlet.rb, line 7
def do_POST(req, res)
  res['Content-Type'] = "text/html"
  res.body = req['Referer'] || ''
end