You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both HTTPHeaders and HPACKHeaders have very similar APIs. One slight difference is that HTTPHeaderssubscript(canonicalForm:) returns [Substring] while HPACKHeaders returns [String].
Returning [Substring] would allow us to potentially avoid some heap allocations as well as bringing the API more in line with HTTPHeaders.
We should consider adding an alternative subscript API now or at least changing this in the next major version of NIO HTTP/2.
The text was updated successfully, but these errors were encountered:
Both
HTTPHeaders
andHPACKHeaders
have very similar APIs. One slight difference is thatHTTPHeaders
subscript(canonicalForm:)
returns[Substring]
whileHPACKHeaders
returns[String]
.Returning
[Substring]
would allow us to potentially avoid some heap allocations as well as bringing the API more in line withHTTPHeaders
.We should consider adding an alternative subscript API now or at least changing this in the next major version of NIO HTTP/2.
The text was updated successfully, but these errors were encountered: