def Url.host_port.v4
import bend-kube-runtime@0.2.0.0/src/config.bend as Configimport Base
78def Url.host_port.v4(parts: List<&2, String>, +dflt: U32) -> String & U32:
79 match parts:
80 case Con{h, Con{p, rest}}:
81 (h, Url.port(p, dflt))
82 case Con{h, Nil{}}:
83 (h, dflt)
84 case Nil{}:
85 ("", dflt)