ASCII-lowercase the key in place (HTTP headers are ASCII-only) and wrap in `Rc `, saving one allocation vs `key.to_lowercase().into()`.
(mut key: String)
| 29 | /// ASCII-lowercase the key in place (HTTP headers are ASCII-only) and wrap in `Rc<str>`, |
| 30 | /// saving one allocation vs `key.to_lowercase().into()`. |
| 31 | fn lower_key(mut key: String) -> ImmutableString { |
| 32 | key.make_ascii_lowercase(); |
| 33 | key.into() |
| 34 | } |
| 35 | |
| 36 | // https://fetch.spec.whatwg.org/#concept-headers-guard |
| 37 | #[derive(Clone, Copy, Default, PartialEq)] |