apple / swift-nio-http2

HTTP/2 support for SwiftNIO
https://swiftpackageindex.com/apple/swift-nio-http2/main/documentation/niohttp2
Apache License 2.0
465 stars 82 forks source link

Provide an iterator for header values #362

Closed glbrntt closed 1 year ago

glbrntt commented 1 year ago

Motivation:

We don't always require an array of header values to be extracted. Sometimes we just need to be able to iterate through them. For 'regular' header values we incur an allocation for the array, for values in their canonical form we incure at least two allocations. We can do better than this by providing a header value sequence.

Modifications:

Result: