def cookie.http_on
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
67# set the HttpOnly flag
68def cookie.http_on(c: Cookie) -> Cookie:
69 match c:
70 case Cookie{name, value, expires, max_age, domain, path, secure, http_only,
71 same_site, host_only}:
72 Cookie{name, value, expires, max_age, domain, path, secure, True{},
73 same_site, host_only}