def Url.host_port.v6

bend-kube-runtime@0.2.0.0 · src/config.bend:69

import bend-kube-runtime@0.2.0.0/src/config.bend as Config
import Base

69def Url.host_port.v6(parts: List<&2, String>, +dflt: U32) -> String & U32:
70  match parts:
71    case Con{h, Con{p, rest}}:
72      (h, Url.port(String.drop(p, 1n), dflt))
73    case Con{h, Nil{}}:
74      (h, dflt)
75    case Nil{}:
76      ("", dflt)

Uses (7)

Used by (1)