class ContentTypeServlet

Public Instance Methods

do_GET(req, res) click to toggle source
# File lib/mechanize/test_case/content_type_servlet.rb, line 2
def do_GET(req, res)
  ct = req.query['ct'] || "text/html; charset=utf-8"
  res['Content-Type'] = ct
  res.body = "Hello World"
end