mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
match all values in HTTPHeaders.isKeepAlive(...) HTTPHeaders.isKeepAlive(...) does only match the first value. ### Motivation: Keep-alive and Close may be something on comma separated arrays ### Modifications: - Made an extension function to `ByteBuffer` that could separate the strings at low level, without Swift string API, so that it could split the values - Another extension functions that compares the comma separated array with a given array to tell the caller which exists and which no - Added unit tests for them - Used them in the HTTPHeader ### Result: - Now, if a request is sent using Keep-alive or Close where it was in an array, it will be handled - fixes #410