You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Encapsulates a cookie that is coming from the client with a request and only contains the name and value, * nothing else.*/caseclassRequestCookie(name: String, value: String)
objectRequestCookie {
deffromPlayCookie(cookie: play.api.mvc.Cookie):RequestCookie=RequestCookie(cookie.name, cookie.value)
/** Decode request cookies from a cookie header */defdecodeCookieHeader(header: String):Seq[RequestCookie] =
play.api.mvc.Cookies.decodeCookieHeader(header).map(fromPlayCookie)
}
Request cookies and response cookies are implemented using the same class,
play.api.mvc.Cookie
. So the following would compile:However it would set all request cookies to HTTP-only and remove all other settings.
So there should be two different Cookie classes,
RequestCookie(name, value)
, andCookie
should be renamed toResponseCookie
(orSetCookie
).The text was updated successfully, but these errors were encountered: