def Proxy.route
import bend-kube-runtime@0.2.0.0/src/proxy.bend as Proxyimport Base
302# How to reach host:port, given HTTPS_PROXY (url) and NO_PROXY (no):
303# localhost and loopback addresses never use a proxy (as in Go), nor do
304# hosts NO_PROXY lists, nor anything when no proxy is set.
305def Proxy.route(+url: String, no: String, host: String, +port: U32) -> Route:
306 +h = String.to_lower(host)
307 Proxy.route.local(url, no, h, port, Proxy.is_local(h))