Http.h2.event.fold: def of bend-kit-http@0.38.2.0 Import: import bend-kit-http@0.38.2.0/http.bend as Http Lines 3252-3268 of bend-kit-http@0.38.2.0/http.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-http@0.38.2.0/http.bend&start_line=3252&end_line=3268 import Base import bend-kit-http2@0.4.0.0/http2.bend as H2 def h2.event.fold(acc: Result<&1, &1, Err, Maybe<&1, Res>>, event: H2.ClientEvent) -> Result<&1, &1, Err, Maybe<&1, Res>>: match acc: case Fail{e}: Fail{e} case Done{Some{res}}: Done{Some{res}} case Done{None{}}: match event: case H2.Response{id, headers, body}: h2.response(headers, body) case H2.Reset{id, code}: Fail{ErrBad{}} case H2.Shutdown{last, code}: Done{None{}} case H2.Pong{data}: Done{None{}} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/http2.bend&name=ClientEvent https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.2.0/http.bend&name=Err https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.2.0/http.bend&name=Res https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.2.0/http.bend&name=h2.response