Function kvarn_utils::replace_header
source · [−]pub fn replace_header<K: IntoHeaderName + Copy>(
headers: &mut HeaderMap,
name: K,
new: HeaderValue
)
Expand description
Replaces the header name
with new
in headers
.
Removes all other occurrences of name
.