Sha256: 0dadae3f362459b20a07f23d1e1c711469cc31e06c2b837c5366eaa960c4cab4
Contents?: true
Size: 334 Bytes
Versions: 15
Compression:
Stored size: 334 Bytes
Contents
class QuotedValueCookieServlet < WEBrick::HTTPServlet::AbstractServlet def do_GET(req, res) cookie = WEBrick::Cookie.new("quoted", "\"value\"") cookie.path = "/" cookie.expires = Time.now + 86400 res.cookies << cookie res['Content-Type'] = "text/html" res.body = "<html><body>hello</body></html>" end end
Version data entries
15 entries across 15 versions & 2 rubygems