def client.apply.allowed

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

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

1165def client.apply.allowed(c: Control, +kind: U32, flags: U32, id: U32) -> Bool:
1166  Control{next, active, frame_max, initial, max_streams, connection, recv,
1167    first, ack, continuation, goaway} = c
1168  Bool.and(Bool.or(Bool.not(first), Bool.and(U32.is_eq(kind, 4), U32.is_eq(flags, 0))),
1169    client.continuation.expected(continuation, kind, id))

Uses (8)

Used by (1)