writeCookie method
Signs a single cookie
, and adds it to an outgoing
res
ponse. The input cookie
is not modified.
See createSignedCookie.
Implementation
void writeCookie(ResponseContext res, Cookie cookie) {
res.cookies.add(createSignedCookie(cookie));
}