menemen

Crates.iomenemen
lib.rsmenemen
version1.0.3
sourcesrc
created_at2022-01-08 00:52:13.017355
updated_at2023-04-23 21:43:15.259959
descriptionA streaming http request library
homepage
repositoryhttps://github.com/behemehal/Menemen
max_upload_size
id510014
size78,078
Ahmetcan Aksu (ahmtcn123)

documentation

https://docs.rs/menemen

README

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

Commit count: 16

cargo fmt