Url.host_field.wrap: def of bend-kit-url@0.4.1.0 Import: import bend-kit-url@0.4.1.0/url.bend as Url Lines 425-431 of bend-kit-url@0.4.1.0/url.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-url@0.4.1.0/url.bend&start_line=425&end_line=431 import Base # RFC 9110 ยง7.2: bracket an IPv6 literal in Host, and omit the default port. def host_field.wrap(host: String, ipv6: Bool) -> String: match ipv6: case True{}: "[" ++ host ++ "]" case False{}: host Uses (3): 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.append