Web.loopback: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/web.bend as Web Lines 117-121 of ezmcp@0.1.0.0/src/web.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/web.bend&start_line=117&end_line=121 import Base # whether an Origin is a page on this machine: http or https, host # localhost, 127.0.0.1 or [::1], and an optional port def loopback(+origin: String) -> Bool: origin.or(loopback.scheme(origin, 7n, String.starts_with(origin, "http://")), _u => loopback.scheme(origin, 8n, String.starts_with(origin, "https://"))) 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.starts_with https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/web.bend&name=loopback.scheme https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/web.bend&name=origin.or