mmhttp 0.2.0

A minimal HTTP client for Rust, using std networking.
Documentation
  • Coverage
  • 0%
    0 out of 13 items documented0 out of 3 items with examples
  • Size
  • Source code size: 3.32 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.23 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s 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.2"
use mmhttp;

fn main() {
    let res = mmhttp::single_shot("example.com:80", "/", http::Method::GET).unwrap();
}