mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: HPACKHeaders are similar to HTTPHeaders but are missing a few useful features: - adding a sequence of headers to avoid reallocations, and - being expressible as a dictionary literal. Modifications: - Add two `add(contentsOf:)` methods, one for key/value pairs, one for key/value/indexing triplets. - Add conformance to `ExpressibleByDictionaryLiteral` Result: HPACKHeaders is closer in feature parity to HTTPHeaders.