Allowed for Headers to be  from an iterator of Header
use std::str;
use std::str::FromStr;
use std::fmt;
+use std::iter::FromIterator;
use req_resp::RequestOrResponse;
@@ -289,6 +290,12 @@ impl Headers {
}
+impl FromIterator<Header> for Headers {
+ fn from_iter<T : IntoIterator<Item=Header>>(iter: T) -> Headers {
+ Headers(iter.into_iter().collect())
+ }
+}
+
#[cfg(test)]
mod test {
use solicit::header::Header;
