Instance MethodHTTPTypes
removeHopByHopFields()
Removes the fields that belong to a single connection rather than to the message.
mutating func removeHopByHopFields()
Discussion
Call this before forwarding a response received from somewhere else - proxying a ClientResponse, say. Without it an origin server’s Connection: close would close our client’s connection, and its Upgrade would advertise a protocol switch this server never agreed to.
Connection itself names further fields that are hop-by-hop for that hop, so those are removed too.