nephele 0.0.2

A high performance asynchronous programming runtime for Rust.
use std::collections::hash_map;
use std::iter::Iterator;

use crate::common::http_types::headers::{HeaderName, HeaderValues};

#[derive(Debug)]
pub struct Names<'a> {
    pub(super) inner: hash_map::Keys<'a, HeaderName, HeaderValues>,
}

impl<'a> Iterator for Names<'a> {
    type Item = &'a HeaderName;

    fn next(&mut self) -> Option<Self::Item> {
        self.inner.next()
    }
}