Skip to main content

basic_auth

Function basic_auth 

Source
pub fn basic_auth(username: &str, password: &str) -> String
Expand description

Generate Basic Auth header value (RFC 7617).

§Arguments

  • username - The user ID.
  • password - The password.

§Returns

“Basic “ followed by base64-encoded credentials.