We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The first example in https://rust-lang-nursery.github.io/rust-cookbook/web/clients/apis.html is not working anymore. Apperently github needs a user agent now.
I (as a beginner) changed the code to:
let client = reqwest::Client::builder() .user_agent("Rust_Reqwest_Test") .build()?; // let response = reqwest::get(&request_url).await?; let response = client.get(&request_url) .send() .await?;
Credit to Globi::<!> from the Rust Discord who helped me identify the problem.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The first example in https://rust-lang-nursery.github.io/rust-cookbook/web/clients/apis.html is not working anymore. Apperently github needs a user agent now.
I (as a beginner) changed the code to:
Credit to Globi::<!> from the Rust Discord who helped me identify the problem.
The text was updated successfully, but these errors were encountered: