def pool.h2.reusable
bend-kit-http@0.38.2.0 · http.bend:3571
import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-http2@0.4.0.0/http2.bend as H2
3571def pool.h2.reusable(c: Conn) -> Bool & Conn:
3572 match c:
3573 case Conn{tls, s}:
3574 (True{}, Conn{tls, s})
3575 case ConnH2{s, H2.Client{input, streams, encoder, decoder, +control}}:
3576 H2.Control{next, active, frame_max, initial, max_streams, send_window,
3577 recv_window, first, ack, continuation, +goaway} = control
3578 (Maybe.is_none(&2, U32, goaway),
3579 ConnH2{s, H2.Client{input, streams, encoder, decoder, control}})