def cookie.age
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
35# replace Max-Age
36def cookie.age(c: Cookie, age: String) -> Cookie:
37 match c:
38 case Cookie{name, value, expires, max_age, domain, path, secure, http_only,
39 same_site, host_only}:
40 Cookie{name, value, expires, age, domain, path, secure, http_only,
41 same_site, host_only}