def cookie.secure_on
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
59# set the Secure flag
60def cookie.secure_on(c: Cookie) -> Cookie:
61 match c:
62 case Cookie{name, value, expires, max_age, domain, path, secure, http_only,
63 same_site, host_only}:
64 Cookie{name, value, expires, max_age, domain, path, True{}, http_only,
65 same_site, host_only}