Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/behemehal/menemen

A streaming http/https request library
https://github.com/behemehal/menemen

client http https rust streaming

Last synced: 7 days ago
JSON representation

A streaming http/https request library

Awesome Lists containing this project

README

        

# Menemen

[![Crates.io Version](https://img.shields.io/crates/v/menemen?logo=rust)](https://crates.io/crates/menemen)
[![Documentation](https://docs.rs/menemen/badge.svg)](https://docs.rs/menemen)

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

```rust
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](https://github.com/behemehal/Menemen/tree/main/examples)