Expand description
§Mini HTTP Client
A minimal HTTP client library for basic GET and POST requests.
§Features
- Lightweight and minimal dependencies
- Async/await support with tokio
- Optional TLS support
- JSON serialization support
§Example
use rumbo_http_client::{HttpClient, HttpMethod};
#[tokio::main]
async fn main() {
let response = HttpClient::fetch(
HttpMethod::GET,
"http://httpbin.org/get".to_string(),
None,
None::<()>
).await;
println!("Status: {}", response.status);
if let Some(body) = response.body {
println!("Body: {}", body);
}
}Re-exports§
pub use HttpMethod::*;
Structs§
- Http
Client - A minimal HTTP client
- Response
- HTTP response structure
Enums§
- Http
Error - Errors that can occur during HTTP requests
- Http
Method - HTTP methods supported by the client