def Proxy.connect

bend-kube-runtime@0.2.0.0 · src/proxy.bend:329

import bend-kube-runtime@0.2.0.0/src/proxy.bend as Proxy
import Base

329# The request that opens a tunnel to host:port.
330def Proxy.connect(+host: String, +port: U32, +auth: String) -> String:
331  +t = Proxy.target(host, port)
332  "CONNECT " ++ t ++ " HTTP/1.1\r\nHost: " ++ t ++ "\r\n"
333    ++ Proxy.auth_line.go(auth, String.is_empty(auth)) ++ "\r\n"

Uses (6)

Used by (1)