def Proxy.parse.go
bend-kube-runtime@0.2.0.0 · src/proxy.bend:259
import bend-kube-runtime@0.2.0.0/src/proxy.bend as Proxy
import Base
import bend-kube-runtime@0.2.0.0/src/config.bend as K
259def Proxy.parse.go(+u: String, http: Bool, other: Bool) -> Route:
260 match http other:
261 case True{} _:
262 Proxy.parse.auth(K.Url.split_path(String.drop(u, 7n), ""))
263 case False{} True{}:
264 NoRoute{"HTTPS_PROXY: only http:// proxies are supported"}
265 case False{} False{}:
266 Proxy.parse.auth(K.Url.split_path(u, ""))