(&self, key: &str)
| 175 | /// Returns the first header with `name_hash`. |
| 176 | /// |
| 177 | /// Hash-only lookups cannot distinguish collisions. Use [`Self::header_index`] when the |
| 178 | /// original header text is available. |
| 179 | #[inline] |
| 180 | pub fn header_index_hash(&self, name_hash: u64) -> Option<usize> { |
| 181 | self.headers.iter().position(|cell| cell.hash == name_hash) |
| 182 | } |
no test coverage detected