-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
As far as I can tell, hyper does not support basic http authentication in the client. Here is my code (as I likely may have done something wrong):
fn main() {
let client = Client::new();
let mut response = client.get("http://user:pass@localhost:3000").send().unwrap();
let mut s = String::new();
response.read_to_string(&mut s);
println!("{}", s);
}Can someone confirm whether basic auth is supported? Are there any alternatives? Should I hand-roll the header?
If nothing else comes of this request I'm ok. Simply by filing this issue the next guy trying to use basic auth is going see this and save some time.
Metadata
Metadata
Assignees
Labels
No labels