class SendCookiesServlet

Public Instance Methods

do_GET(req, res) click to toggle source
# File lib/mechanize/test_case.rb, line 497
def do_GET(req, res)
  res['Content-Type'] = "text/html"
  res.body = "<html><body>"
  req.cookies.each { |c|
    res.body << "<a href=\"#\">#{c.name}:#{c.value}</a>"
  }
  res.body << "</body></html>"
end