def allowed

bend-kit-http2@0.4.0.0 · http2.bend:219

import bend-kit-http2@0.4.0.0/http2.bend as Http2
import Base

219# max is the peer's SETTINGS_MAX_FRAME_SIZE, initially 16384.
220def allowed(+kind: U32) -> U32:
221  match kind:
222    case 0:
223      9
224    case 1:
225      45
226    case 2:
227      0
228    case 3:
229      0
230    case 4:
231      1
232    case 5:
233      12
234    case 6:
235      1
236    case 7:
237      0
238    case 8:
239      0
240    case 9:
241      4
242    case _:
243      255

Uses (4)

Used by (1)