playframework/playframework — pull request #1611 by wsargent (2013-09-06 19:21:58+00:00)
Title: Make cookies map public

From the mailing list:

"Unlike headers, sessions, queryStrings and other request inputs, it's currently not possible to iterate over cookies.

The `request.cookies` properties return a Cookies object, which only have `get` and `apply` methods. In addition, the underlying `cookies: Map[String, Cookie]` is not available from controllers.

Is there a specific reason that the use of cookies is so much restricted?

I'm trying for example to remove all cookies in the request, but It's not possible without re-decoding myself the cookie header."