https://github.com/ararog/deboa
A very simple and straightforward HTTP client written in Rust.
https://github.com/ararog/deboa
Last synced: about 1 year ago
JSON representation
A very simple and straightforward HTTP client written in Rust.
- Host: GitHub
- URL: https://github.com/ararog/deboa
- Owner: ararog
- Created: 2025-02-11T17:04:18.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-15T17:26:30.000Z (about 1 year ago)
- Last Synced: 2025-02-28T14:44:52.999Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rust-with-stars - deboa - 01-27 | (Libraries / Network programming)
README
# deboa
A very simple and straightforward HTTP client.
The goal is to provide a simple and easy to use HTTP, very
similar to apisauce for nodejs/javascript.
## Install
deboa = { version = "0.0.2" }
## Usage
```
use deboa::Deboa;
let api = Deboa::new("https://jsonplaceholder.typicode.com", None);
let res = api.get("/posts").await;
let posts: std::result::Result =
serde_json::from_reader(res.unwrap().reader());
println!("posts: {:#?}", posts);
```