(self)
| 122 | impl Headers { |
| 123 | #[allow(clippy::should_implement_trait)] |
| 124 | pub fn into_iter(self) -> impl Iterator<Item = (Box<str>, Box<[u8]>)> { |
| 125 | IntoIterator::into_iter(self.entries).map(|HttpHeaderPair { name, value }| (name, value)) |
| 126 | } |
| 127 | |
| 128 | /// The sum of the lengths of all the header names and header values. |
| 129 | /// |