rust-lang-nursery / rust-cookbook

https://rust-lang-nursery.github.io/rust-cookbook
Creative Commons Zero v1.0 Universal
2.25k stars 284 forks source link

demonstrate basic http authentication #605

Closed KappaDistributive closed 3 years ago

KappaDistributive commented 4 years ago

Part of #436

Perform a basic HTTP authentication with reqwest's blocking client.

If you'd prefer to use an asynchronous client instead, just say the word. (Personally, I don't have a strong preference for the sake of this example in either direction. But ultimately opted to go with the synchronous client to minimize the complexity of this example and purely focus it on the authentication aspect.)

AndyGauge commented 3 years ago

thx