[][src]Struct digest_access::DigestAccess

pub struct DigestAccess { /* fields omitted */ }

Implementations

impl DigestAccess[src]

pub fn from_headers(
    headers: &HeaderMap
) -> Result<DigestAccess, DigestParseError>
[src]

Returns a DigestAccess object if the HTTP response HeaderMap contains a digest authenticate header

pub fn set_username<A: Into<String>>(&mut self, username: A)[src]

pub fn set_password(&mut self, password: &str)[src]

pub fn set_hashed_user_realm_password<A: Into<Vec<u8>>>(&mut self, hashed: A)[src]

pub fn generate_authorization(
    &mut self,
    method: &str,
    uri: &str,
    body: Option<&[u8]>,
    cnonce: Option<&str>
) -> Option<String>
[src]

Generate the Authorization header value

pub fn nonce(&self) -> &str[src]

pub fn cnonce() -> String[src]

pub fn hash_user_realm_password<T: Digest>(
    username: &str,
    realm: &str,
    password: &str
) -> Output<T>
[src]

Trait Implementations

impl Debug for DigestAccess[src]

impl FromStr for DigestAccess[src]

type Err = DigestParseError

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,