def proxy.connect.chunk
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
3421def proxy.connect.chunk(empty: Bool, s: Socket, raw: String,
3422 +len: U32, buf: Array<U32>) -> TunnelStep:
3423 match empty:
3424 case True{}:
3425 TunnelHead{s, raw, FrameBad{}}
3426 case False{}:
3427 TunnelRead{s, raw ++ Bytes.to_string(Bytes.Bytes{len, buf})}