5 releases

Uses new Rust 2024

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

#1846 in Network programming

Download history 248/week @ 2025-01-14 47/week @ 2025-01-21 2/week @ 2025-01-28 19/week @ 2025-02-04 148/week @ 2025-02-18 132/week @ 2025-02-25 30/week @ 2025-03-04 3/week @ 2025-03-11 2/week @ 2025-03-18

170 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