mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: We are currently parsing each header eagly which means we need to convert from bytes to String frequently. The reality is that most of the times the user is not really interested in all the headers and so it is kind of wasteful to do so. Modification: Rewrite our internal storage of HTTPHeaders to use a ByteBuffer as internal storage and so only parse headers on demand. Result: Less overhead for parsing headers.