Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java 文档展示了如何使用 Java 设置 cookie:
response().setCookie("theme", "blue");
我如何对 scala 做同样的事情?
Ok("Hello").withCookies(Cookie("key1", "value"), Cookie("key2", "value2"))