Trait hyper::header::Scheme
[-] [+]
[src]
pub trait Scheme: FromStr + Debug + Clone + Send + Sync { fn scheme(Option<Self>) -> Option<&'static str>; fn fmt_scheme(&self, &mut Formatter) -> Result; }
An Authorization scheme to be used in the header.
Required Methods
fn scheme(Option<Self>) -> Option<&'static str>
An optional Scheme name.
For example, Basic asdf
has the name Basic
. The Option
fn fmt_scheme(&self, &mut Formatter) -> Result
Format the Scheme data into a header value.