def cookie.ip

bend-kit-http@0.38.4.0 · http.bend:1916

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

1916# An IP literal rather than a host name: IPv6 has a colon, IPv4 is digits and dots.
1917def cookie.ip(+h: String) -> Bool:
1918  Bool.or(String.contains(h, ":"), cookie.ip4(h))

Uses (5)

Used by (1)