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
102 downloads per month
Used in 2 crates
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