hypertor
hypertor is a Rust library that provides a client for making HTTP requests over the Tor network. It integrates with the Tor network and supports both HTTP and HTTPS protocols with configurable TLS support. Built on top of hyper and arti_client, it allows you to send GET, POST, and HEAD requests with custom configurations.
Features
- HTTP and HTTPS Support: Send requests over both HTTP and HTTPS.
- Tor Integration: Connect through the Tor network.
- Configurable TLS: Customize TLS settings for secure connections.
- Builder Pattern: Easily configure clients with
ClientConfigBuilder.
Installation
Add hypertor to your Cargo.toml:
[]
= "0.1" # Replace with the latest version
Usage
Here's a basic example of how to use hypertor to create a client and make HTTP requests:
Basic Example
use Client;
use Result;
async
Custom Configuration
You can also create a client with a custom configuration:
use ;
use TlsConnector;
use TorClientConfig;
async
Error Handling
hypertor uses anyhow::Result for error handling, which provides a flexible way to handle and propagate errors. For more details, refer to the anyhow documentation.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
License
This project is licensed under the MIT License. See the LICENSE file for details.