def cookie.domain_match

bend-kit-http@0.38.2.0 · http.bend:1920

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

1920# §5.1.3: s is d, or a host name under d on a label boundary.
1921def cookie.domain_match(+s: String, +d: String) -> Bool:
1922  Bool.or(String.eq(s, d), Bool.and(String.ends_with(s, "." ++ d), Bool.not(cookie.ip(s))))

Uses (9)

Used by (3)