refactor(headers): Rename Cookies header to Cookie

`Cookie` is the actual name of the header and since all other header structs
use the exact camel-cased version of their name using a different name here
is very inconvienient and confusing. You will encounter weird errors if you
try to use `Cookie` as the header. For this reason rename `Cookies` as
discussed on IRC with @seanmonstar and @reem and use `CookiePair` for real
cookies.

BREAKING CHANGE: Change header `Cookie` to `Cookie`
This commit is contained in:
Pyfisch
2015-01-24 15:53:40 +01:00
parent fb92a260c0
commit 92f43cf873
2 changed files with 25 additions and 27 deletions

View File

@@ -15,7 +15,7 @@ pub use self::cache_control::{CacheControl, CacheDirective};
pub use self::connection::{Connection, ConnectionOption};
pub use self::content_length::ContentLength;
pub use self::content_type::ContentType;
pub use self::cookie::Cookies;
pub use self::cookie::Cookie;
pub use self::date::Date;
pub use self::etag::Etag;
pub use self::expires::Expires;
@@ -164,4 +164,3 @@ mod transfer_encoding;
mod upgrade;
mod user_agent;
mod vary;