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(), it will use the current time.

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

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.