Reference

setCookie

Appends a serialized cookie to a response's `Set-Cookie` headers and returns the same response.

Signature

function setCookie(response: Response, name: string, value: string, options: CookieOptions): Response