mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: In the future we'll want to use PRIORITY frames to provide feedback on how we emit data. Additionally, RFC 7540 forbids certain kinds of PRIORITY frame, which right now we tolerate receiving. We can design a minor PRIORITY shim to ensure that we have a code path for PRIORITY data to be passed around, and then use this shim to enforce RFC 7540's requirements. Modifications: - Added support for PRIORITY frame data inbound. - Enforce that frames may not establish self-dependency. Result: Better policing of RFC 7540 constraints.