Proxy.Proxy.parse.at: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/proxy.bend as Proxy Lines 242-252 of bend-kube-runtime@0.2.0.0/src/proxy.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/proxy.bend&start_line=242&end_line=252 import Base import bend-kube-runtime@0.2.0.0/src/base64.bend as B import bend-kube-runtime@0.2.0.0/src/config.bend as K # The authority's parts split at '@', last first: the host, then the # user info (which may itself hold an '@'). def Proxy.parse.at(rs: List<&2, String>) -> Route: match rs: case Con{hp, Nil{}}: Proxy.parse.hp(K.Url.host_port(hp, 80), "") case Con{hp, us}: Proxy.parse.hp(K.Url.host_port(hp, 80), B.B64.encode(Pct.decode(String.join(List.reverse(&2, String, us), "@")))) case Nil{}: NoRoute{"HTTPS_PROXY names no host"} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.join https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/base64.bend&name=B64.encode https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/config.bend&name=Url.host_port https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/proxy.bend&name=Pct.decode https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/proxy.bend&name=Proxy.parse.hp https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/proxy.bend&name=Route