Trait hyper::header::Scheme
[−]
[src]
pub trait Scheme: FromStr + Debug + Clone + Send + Sync { fn scheme() -> Option<&'static str>; fn fmt_scheme(&self, _: &mut Formatter) -> Result; }
An Authorization scheme to be used in the header.
Required Methods
fn scheme() -> Option<&'static str>
An optional Scheme name.
Will be replaced with an associated constant once available.
fn fmt_scheme(&self, _: &mut Formatter) -> Result
Format the Scheme data into a header value.
Implementations on Foreign Types
impl Scheme for String
[src]
impl Scheme for String