7 unstable releases (3 breaking)

Uses new Rust 2024

new 0.4.0 May 18, 2025
0.3.0 May 5, 2025
0.2.1 Mar 2, 2025
0.2.0 Feb 19, 2025
0.1.2 Jan 19, 2025

#22 in #tcp-stream

Download history 6/week @ 2025-01-24 12/week @ 2025-01-31 8/week @ 2025-02-07 112/week @ 2025-02-14 43/week @ 2025-02-21 147/week @ 2025-02-28 11/week @ 2025-03-07 1/week @ 2025-03-14 1/week @ 2025-03-21 105/week @ 2025-05-02 38/week @ 2025-05-09

143 downloads per month
Used in 2 crates

GPL-3.0-only

40KB
1K 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(HttpStream::from(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

~220–650KB
~16K SLoC