class HeaderServlet

Public Instance Methods

do_GET(req, res) click to toggle source
# File lib/mechanize/test_case/header_servlet.rb, line 2
def do_GET(req, res)
  res.content_type = "text/plain"

  req.query.each do |x,y|
    res[x] = y
  end

  req.each do |k, v|
    res.body << "#{k}|#{v}\n"
  end
end