Web.loopback.host: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/web.bend as Web Lines 102-107 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=102&end_line=107 import Base # whether what follows the scheme is a loopback host and an optional port def loopback.host(+after: String) -> Bool: origin.or(loopback.at(after, 9n, String.starts_with(after, "localhost")), _u => origin.or(loopback.at(after, 9n, String.starts_with(after, "127.0.0.1")), _v => loopback.at(after, 5n, String.starts_with(after, "[::1]")))) 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.at https://jend.leeeet.dev/definition.txt?path=ezmcp@0.1.0.0/src/web.bend&name=origin.or