mmhttp 0.5.0

A minimal HTTP 0.9 client for Rust, using std networking.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 3.48 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.01 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lionkor

mmhttp

minimal http.

You just need to make a simple HTTP GET request, lean and mean. No TLS. No fancy features, no dependencies, just a single function to get the job done.

Unit-tested. Full HTTP 0.9 support. Binary response. No HTTP 1.0 or 1.1 support, no HTTP/2 or HTTP/3 support, no TLS, no cookies, no redirects, no headers, no body, no AI, no LLM, no crypto, no async, no threads, no futures, no streams, no channels, no actors, no macros, no generics, no traits, no structs, no modules, no crates, no libraries, no frameworks, no dependencies. Minimal, guys.

Usage

Add the following to your Cargo.toml:

[dependencies]
mmhttp = "0.4"
use mmhttp::get;

fn main() {
    let response = mmhttp::get("example.com:80", "/").unwrap();
    println!("Response: {}", String::from_utf8_lossy(&response));
}