def cookie.domain_suffix
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
424# suffix match when the host is not an IPv4 address
425def cookie.domain_suffix(host: String, domain: String, ip: Bool) -> Bool:
426 match ip:
427 case True{}:
428 False{}
429 case False{}:
430 String.ends_with(host, "." ++ domain)