Make Connection usable

Connection's only field was private, making it impossible to construct a
Connection.
This commit is contained in:
Hanno Braun
2014-11-08 22:51:28 +01:00
parent c32b15041a
commit ab9c4f99b8

View File

@@ -5,7 +5,7 @@ use std::from_str::FromStr;
/// The `Connection` header.
#[deriving(Clone, PartialEq, Show)]
pub struct Connection(Vec<ConnectionOption>);
pub struct Connection(pub Vec<ConnectionOption>);
/// Values that can be in the `Connection` header.
#[deriving(Clone, PartialEq)]