Build a Set-Cookie header value from name, value, and options.
Options support: maxAge (number, seconds), httpOnly (bool),secure (bool), sameSite ('Strict' | 'Lax' | 'None'), path (string).
Order: name=value; Max-Age=N; Path=/; HttpOnly; Secure; SameSite=Lax
(only include flags that are truthy / present).
Sample tests