def cookie.flag.http

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

import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie
import Base

120# HttpOnly flag, or leave the cookie alone
121def cookie.flag.http(c: Cookie, _name: String, hit: Bool) -> Cookie:
122  match hit:
123    case True{}:
124      cookie.http_on(c)
125    case False{}:
126      c

Uses (4)

Used by (1)