5 releases
new 0.2.1 | Mar 2, 2025 |
---|---|
0.2.0 | Feb 19, 2025 |
0.1.2 | Jan 19, 2025 |
0.1.1 | Jan 19, 2025 |
0.1.0 | Jan 19, 2025 |
#9 in #cargo-docs
313 downloads per month
Used in 2 crates
39KB
988 lines
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
lib.rs
:
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();
Dependencies
~240–680KB
~16K SLoC