def h2.idle.reply
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
import bend-kit-http2@0.4.0.0/http2.bend as H2
3614def h2.idle.reply(s: Socket, reply: H2.Reply) -> IO(Took):
3615 match reply:
3616 case H2.Failed{error}:
3617 IO.pure(Took, TookSeen{False{}, Conn{True{}, s}})
3618 case H2.Advanced{client, writes, events}:
3619 do IO<Took>:
3620 sent : Result<&1, &1, Err, Socket> <- h2.send(writes, s)
3621 return h2.idle.sent(client, sent)