def client.apply.frame
bend-kit-http2@0.4.0.0 · http2.bend:1171
import bend-kit-http2@0.4.0.0/http2.bend as Http2
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
1171def client.apply.frame(kind: U32, flags: U32, id: U32, payload: Bytes.Bytes, c: Client) -> Reply:
1172 match kind:
1173 case 0:
1174 client.data.receive(id, flags, payload, c)
1175 case 1:
1176 client.headers.receive(id, flags, payload, c)
1177 case 2:
1178 client.ok(c)
1179 case 3:
1180 client.rst(id, payload, c)
1181 case 4:
1182 client.settings(flags, payload, c)
1183 case 5:
1184 client.fail(1, True{}, 0)
1185 case 6:
1186 client.ping(flags, payload, c)
1187 case 7:
1188 client.goaway(payload, c)
1189 case 8:
1190 client.window.update(id, payload, c)
1191 case 9:
1192 client.continuation(id, flags, payload, c)
1193 case _:
1194 client.ok(c)