law tunnel_needs_200
import bend-kube-runtime@0.2.0.0/LAWS.bend as LAWSimport Base
import bend-kube-runtime@0.2.0.0/src/utf8.bend as U
import bend-kube-runtime@0.2.0.0/src/proxy.bend as P
285# Only a 200 opens the tunnel; any other answer fails it, quoted.
286law tunnel_needs_200:
287 {P.Tunnel.feed(P.Tunnel.init(),
288 U.Utf8.encode("HTTP/1.1 407 Proxy Authentication Required\r\n\r\n"))
289 == P.TFail{"proxy refused CONNECT: HTTP/1.1 407 Proxy Authentication Required"} : P.Tunnel}
Uses (4)
Used by (0)
No other definition uses this definition.