rama-http-headers 0.2.0

typed http headers for rama
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub(crate) trait IterExt: Iterator {
    fn just_one(&mut self) -> Option<Self::Item> {
        let one = self.next()?;
        match self.next() {
            Some(_) => None,
            None => Some(one),
        }
    }
}

impl<T: Iterator> IterExt for T {}