feat(headers): Parse Upgrade header protocols further

Parses protocols into a name and a value part matching the RFC.
An enum contains all registered or known protocols, but contains
an extension variant.

Closes #480

BREAKING CHANGE: Upgrade header Protocol changed.
This commit is contained in:
Pyfisch
2015-05-02 19:27:54 +02:00
parent 1426a4ce34
commit f47d11b97b
2 changed files with 90 additions and 32 deletions

View File

@@ -42,7 +42,7 @@ pub use self::referer::Referer;
pub use self::server::Server;
pub use self::set_cookie::SetCookie;
pub use self::transfer_encoding::TransferEncoding;
pub use self::upgrade::{Upgrade, Protocol};
pub use self::upgrade::{Upgrade, Protocol, ProtocolName};
pub use self::user_agent::UserAgent;
pub use self::vary::Vary;