def cookie.http_on

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

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

Uses (2)

Used by (1)