9 releases (5 breaking)

Uses new Rust 2024

0.6.0 Jul 1, 2025
0.5.0 Jun 15, 2025
0.4.0 May 18, 2025
0.3.0 May 5, 2025
0.1.2 Jan 19, 2025

#7 in #http-protocols

Download history 3/week @ 2025-08-17 1/week @ 2025-08-24 4/week @ 2025-10-05 3/week @ 2025-10-12 1/week @ 2025-10-19

626 downloads per month
Used in 2 crates

GPL-3.0-only

49KB
1.5K SLoC

Http utils

This crate contains utilities to work with the HTTP protocol

Example

use http::prelude::*;
use std::net::TcpStream;

let req = HttpRequest::builder()
            .method(HttpMethod::GET)
            .url("/")
            .build().unwrap();
let tcp = TcpStream::connect("127.0.0.1:80").unwrap();
req.send_to(tcp).unwrap();

Http utils

Utility library for working with HTTP

== Documentation == To build the documentation, run cargo doc Or browse it online at https://docs.rs/http-utils

Dependencies

~0.2–12MB
~101K SLoC