def exchange.sent
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
2602def exchange.sent(+tls: Bool, +ms: U32, +close: Bool, +head: Bool, m: Socket & Result<&1, &1, U32 & String, Unit>) -> IO(Out):
2603 (s, r) = m
2604 match r:
2605 case Fail{(+code, why)}:
2606 fetch.shut(tls, s, Fail{err.or_late(code, ErrWrite{code, why})}, True{})
2607 case Done{u}:
2608 fetch.loop(close, head, tls, ms, (s, FlMore{rv.start(), 0}))