Function oauthcli::authorization_header [] [src]

pub fn authorization_header<P>(
    method: &str,
    url: Url,
    realm: Option<&str>,
    consumer_key: &str,
    consumer_secret: &str,
    token: Option<&str>,
    token_secret: Option<&str>,
    signature_method: SignatureMethod,
    timestamp: &str,
    nonce: &str,
    callback: Option<&str>,
    verifier: Option<&str>,
    params: P
) -> String where
    P: Iterator<Item = (String, String)>, 
Deprecated since 1.0.0

: Use OAuthAuthorizationHeaderBuilder

Generate Authorization header for OAuth. The return value starts with "OAuth ".

Panics

This function will panic if: - either token or token_secret is specified. - timestamp is not valid for u64. - url is not valid for HTTP or HTTPS.