def cookie.secure_on

emerging-ezhttp@0.21.0.0 · src/cookie.bend:59

import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie
import 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}

Uses (2)

Used by (1)