refactor(header): change Cookie and SetCookie to use String

This removes the cookie crate, since it has an optional dependency on
openssl, which can cause massive breakage if toggled on. Instead, the
`Cookie` and `SetCookie` headers now just use a `String`. Anyone can
create any typed header, so it is easy to plug in different
implementations.

BREAKING CHANGE: The `Cookie` and `SetCookie` headers no longer use the
  cookie crate. New headers can be written for any header, or the ones
  provided in hyper can be accessed as strings.
This commit is contained in:
Sean McArthur
2017-01-05 15:41:55 -08:00
parent 0a58f7e3b5
commit 637b170f52
5 changed files with 11 additions and 142 deletions

View File

@@ -26,10 +26,6 @@ tokio-service = "0.1"
unicase = "1.0"
url = "1.0"
[dependencies.cookie]
version = "0.3"
default-features = false
[dev-dependencies]
num_cpus = "1.0"
pretty_env_logger = "0.1"