Url.abs.hostport: def of bend-net-url@0.4.0.0 Import: import bend-net-url@0.4.0.0/url.bend as Url Lines 344-347 of bend-net-url@0.4.0.0/url.bend: https://jend.leeeet.dev/read.txt?path=bend-net-url@0.4.0.0/url.bend&start_line=344&end_line=347 import Base # ยง3.2.2: hosts are case-insensitive. IPv6 literals are refused (IPv4-only runtime). def abs.hostport(scheme: String, dflt: Maybe<&2, U32>, hp: String & String, rest: String) -> Maybe<&2, Abs>: (+host, ps) = hp abs.hostok(scheme, String.to_lower(host), abs.port(ps, dflt), rest, Bool.not(Bool.or(String.is_empty(host), String.starts_with(host, "[")))) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.to_lower https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-net-url@0.4.0.0/url.bend&name=Abs https://jend.leeeet.dev/definition.txt?path=bend-net-url@0.4.0.0/url.bend&name=abs.hostok https://jend.leeeet.dev/definition.txt?path=bend-net-url@0.4.0.0/url.bend&name=abs.port