Explore the simplicity of making HTTP requests with Rust using the reqwest library. This project showcases a basic example demonstrating the usage of reqwest for making requests with basic authentication.
Make sure you have Rust installed. Add reqwest to your Cargo.toml
file:
[dependencies]
reqwest = {version = "0.11.23", features = ["blocking"]}
- Clone the repository:
git clone https://github.com/itsmohitnarayan/Basic-Authentication-Rust.git
- Navigate to the project directory:
cd Basic-Authentication-Rust
- Build and run the project:
cargo run
Feel free to modify the code and experiment with different HTTP requests. Check out the reqwest documentation for more advanced features and configurations.
Contributions are welcome! If you find any issues or have improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.