Class: OneCookieNoSpacesServlet
- Inherits:
-
WEBrick::HTTPServlet::AbstractServlet
- Object
- WEBrick::HTTPServlet::AbstractServlet
- OneCookieNoSpacesServlet
- Defined in:
- lib/mechanize/test_case.rb
Instance Method Summary collapse
Instance Method Details
#do_GET(req, res) ⇒ Object
400 401 402 403 404 405 406 407 |
# File 'lib/mechanize/test_case.rb', line 400 def do_GET(req, res) = WEBrick::Cookie.new("foo", "bar") .path = "/" .expires = Time.now + 86400 res. << .to_s.gsub(/; /, ';') res['Content-Type'] = "text/html" res.body = "<html><body>hello</body></html>" end |