mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: Its very likely that the response will be HTTP/1.1 or HTTP/1.0 so we can optimize for it by minimizing the buffer.write(...) calls. Beside this we should also change the pattern of *.write(into: inout ByteBuffer) to extension on ByteBuffer itself. Modificiations: - Optimize for HTTP/1.0 and 1.1 - Use extensions on ByteBuffer Result: Faster and more clean code.