On Thu, Jul 11, 2013 at 10:00 AM, Nilanjan Raychaudhuri <
notifications@github.com> wrote:

> In framework/src/play/src/main/scala/play/api/libs/ws/WS.scala:
>
> > @@ -481,6 +482,109 @@ object WS {
> >  }
> >
> >  /**
> > + * A WS Cookie.  This is a trait so that we are not tied to a specific client.
> > + */
> > +trait Cookie {
> > +
> > +  /**
> > +   * The underlying "native" cookie object for the client.
> > +   */
> > +  def underlying: AnyRef
>
> I see this method is going to be any useful if its AnyRef. Lets get ride
> of it
>

Well, that method's there so you can get at the underlying Async Http
cookie and its methods, or whatever else library we're providing a wrapper
around.  If there's something special added to the cookie implementation
(unlikely but possible) then we want people to be able to get to it.  It's
AnyRef because we can't enforce a type, given that the underlying cookie
could be anything (even a custom user written cookie).

Will.