Cookie.cookie.domain_ok: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie Lines 444-450 of emerging-ezhttp@0.21.0.0/src/cookie.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/cookie.bend&start_line=444&end_line=450 import Base # host-only is exact; a Domain attribute uses domain-match def cookie.domain_ok(host: String, domain: String, host_only: Bool) -> Bool: match host_only: case True{}: String.eq(String.to_lower(host), String.to_lower(domain)) case False{}: cookie.domain_match(String.to_lower(host), String.to_lower(domain)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.to_lower https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cookie.bend&name=cookie.domain_match