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

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

313 downloads per month
Used in 2 crates

MIT license

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