Implemented a typed Authorization header

An Authorization header contains a Scheme. If you have no real scheme,
you can use String as your scheme (Authorization<String>).

This includes the `Basic` scheme built-in.
This commit is contained in:
Gilman Tolle
2014-10-15 23:19:22 -07:00
committed by Sean McArthur
parent 7478f3dfd6
commit 91a8e03e7a
4 changed files with 188 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
#![feature(macro_rules, phase, default_type_params, if_let, slicing_syntax)]
#![feature(macro_rules, phase, default_type_params, if_let, slicing_syntax,
tuple_indexing)]
#![deny(missing_docs)]
#![deny(warnings)]
#![experimental]
@@ -125,6 +126,7 @@
//! implement `Reader` and can be read to get the data out of a `Response`.
//!
extern crate serialize;
extern crate time;
extern crate url;
extern crate openssl;