feat(headers): header ergonomics

- Reexports all common::* as header::*
- Most headers implement Deref where it makes sense.

Closes #156
This commit is contained in:
Sean McArthur
2014-11-29 13:55:50 -08:00
parent 1014f63e15
commit 8071cfa8bf
18 changed files with 60 additions and 6 deletions

View File

@@ -21,6 +21,8 @@ use self::Encoding::{Chunked, Gzip, Deflate, Compress, EncodingExt};
#[deriving(Clone, PartialEq, Show)]
pub struct TransferEncoding(pub Vec<Encoding>);
deref!(TransferEncoding -> Vec<Encoding>)
/// A value to be used with the `Transfer-Encoding` header.
///
/// Example: