Struct oauthcli::OAuthAuthorizationHeaderBuilder [] [src]

pub struct OAuthAuthorizationHeaderBuilder<'a> { /* fields omitted */ }

Methods

impl<'a> OAuthAuthorizationHeaderBuilder<'a>
[src]

Sets a custom timestamp. If you don't call timestamp(), the current time will be used.

Sets a custom nonce. If you don't call nonce(), a random string will be used.

Sets the value that indicates whether the builder includes "oauth_version" parameter. The default is true.

Generate Authorization header for OAuth.

Panics

This function will panic if url is not valid for HTTP or HTTPS.

Generate Authorization header for Twitter.

Panics

This function will panic if url is not valid for HTTP or HTTPS.