def cookie.domain_suffix

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

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

Uses (4)

Used by (1)