Skip to content

behemehal/Menemen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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