7 releases (2 stable)

Uses new Rust 2021

1.0.1 May 3, 2022
1.0.0 Mar 12, 2022
0.3.2-alpha Jan 20, 2022
0.2.2-alpha Jan 17, 2022
0.1.0-alpha Jan 8, 2022

#1065 in Network programming

Download history 13/week @ 2022-01-25 5/week @ 2022-02-01 1/week @ 2022-02-08 5/week @ 2022-02-22 17/week @ 2022-03-08 29/week @ 2022-03-15 20/week @ 2022-03-22 1/week @ 2022-03-29 7/week @ 2022-04-05 1/week @ 2022-04-12 2/week @ 2022-04-19 46/week @ 2022-04-26 62/week @ 2022-05-03 107/week @ 2022-05-10

217 downloads per month

GPL-2.0 license

35KB
624 lines

Menemen

Crates.io Version Documentation

Menemen is a Turkish food and also simple streaming http/https client.

use std::io::{Write, Read};
use menemen::request::{Request, RequestTypes};

fn main() {
    let mut request = Request::new("http://postman-echo.com/get", RequestTypes::GET).unwrap();
    let mut response = request.send().unwrap();
    let mut text_buffer = Vec::new();
    response.stream.read_to_end(&mut text_buffer);
    println!("Text: {}", String::from_utf8_lossy(&text_buffer));
}

Examples

You can find examples here


lib.rs:

Menemen

Menemen is a Turkish food and also simple streaming http/https client.

Usage

use std::io::{Write, Read};
use menemen::request::{Request, RequestTypes};

fn main() {
   let mut request = Request::new("http://postman-echo.com/get", RequestTypes::GET).unwrap();
   let mut response = request.send().unwrap();
   let mut text_buffer = Vec::new();
   response.stream.read_to_end(&mut text_buffer);
   println!("Text: {}", String::from_utf8_lossy(&text_buffer));
}

You can find more examples here

Dependencies

~0.2–5.5MB
~94K SLoC