mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: RFC 7540 forbids uppercase characters in header field names, but we currently allow them. We shouldn't. This is the first in a series of patches that will validate header blocks when reasonable. As a result, it seems larger than necessary, as it adds a bunch of scaffolding for extending with further validation code. Modifications: - Added header field validation scaffolding. - Validates that header field names do not contain uppercase chars. - Allows sending RST_STREAM frame before stream setup. Result: Better header field validation.