def cookie.domain
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
43# replace Domain and clear host-only
44def cookie.domain(c: Cookie, host: String) -> Cookie:
45 match c:
46 case Cookie{name, value, expires, max_age, domain, path, secure, http_only,
47 same_site, host_only}:
48 Cookie{name, value, expires, max_age, host, path, secure, http_only,
49 same_site, False{}}