def rv.end
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
1465def rv.end(closed: Bool, +head: Bool, t: Rt) -> Rt:
1466 match closed:
1467 case False{}:
1468 t
1469 case True{}:
1470 match t:
1471 case RtMore{rv}:
1472 rv.step(True{}, head, rv, Bytes.new(0))
1473 case RtBad{}:
1474 RtBad{}
1475 case RtDone{res, rest}:
1476 RtDone{res, rest}