Class: RefererServlet
- Inherits:
-
WEBrick::HTTPServlet::AbstractServlet
- Object
- WEBrick::HTTPServlet::AbstractServlet
- RefererServlet
- Defined in:
- lib/mechanize/test_case.rb
Instance Method Summary collapse
Instance Method Details
#do_GET(req, res) ⇒ Object
444 445 446 447 |
# File 'lib/mechanize/test_case.rb', line 444 def do_GET(req, res) res['Content-Type'] = "text/html" res.body = req['Referer'] || '' end |
#do_POST(req, res) ⇒ Object
449 450 451 452 |
# File 'lib/mechanize/test_case.rb', line 449 def do_POST(req, res) res['Content-Type'] = "text/html" res.body = req['Referer'] || '' end |