Skip to main content

Crate rumbo_http_client

Crate rumbo_http_client 

Source
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§

HttpClient
A minimal HTTP client
Response
HTTP response structure

Enums§

HttpError
Errors that can occur during HTTP requests
HttpMethod
HTTP methods supported by the client