6 releases

Uses new Rust 2024

new 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 283/week @ 2025-01-15 12/week @ 2025-01-22 2/week @ 2025-01-29 19/week @ 2025-02-05 152/week @ 2025-02-19 142/week @ 2025-02-26 19/week @ 2025-03-05 2/week @ 2025-03-19 102/week @ 2025-04-30

102 downloads per month
Used in 2 crates

MIT license

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

~215–640KB
~15K SLoC