Skip to main content

basic_auth_header

Function basic_auth_header 

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

Creates a Basic auth header value from username and password.

Note: Uses hex encoding instead of base64 for testing simplicity. Real implementations should use proper base64 encoding.