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

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.

Awesome Lists containing this project

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);
```