Struct aws_sdk_rust::http::client::proxy::ProxyBasicAuthorization [] [src]

pub struct ProxyBasicAuthorization {
    // some fields omitted
}

Represents a set of Basic proxy authorization credentials.

Examples

use habitat_http_client::proxy::ProxyBasicAuthorization;

let authz = ProxyBasicAuthorization::new("foo".to_string(), "bar".to_string());

assert_eq!(authz.header_value(), "Basic Zm9vOmJhcg==");

Methods

impl ProxyBasicAuthorization
[src]

Creates and returns a new ProxyBasicAuthorization with the given username and password.

Returns a String containing the value for a Proxy-Authorization HTTP header.

Trait Implementations

impl PartialEq for ProxyBasicAuthorization
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for ProxyBasicAuthorization
[src]

Formats the value using the given formatter.