Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/behemehal/menemen
- Owner: behemehal
- License: gpl-2.0
- Created: 2022-01-06T18:19:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T12:03:37.000Z (3 months ago)
- Last Synced: 2024-10-31T12:17:17.169Z (17 days ago)
- Topics: client, http, https, rust, streaming
- Language: Rust
- Homepage: https://crates.io/crates/menemen
- Size: 137 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)