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]
fn new(username: String, password: String) -> Self
Creates and returns a new ProxyBasicAuthorization
with the given username and password.
fn header_value(&self) -> String
Returns a String
containing the value for a Proxy-Authorization
HTTP header.
Trait Implementations
impl PartialEq for ProxyBasicAuthorization
[src]
fn eq(&self, __arg_0: &ProxyBasicAuthorization) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ProxyBasicAuthorization) -> bool
This method tests for !=
.