api_req-0.1.2 has been yanked.
Make API calls more easier
Advantage
For example:
You can not only define the method for each payload, but also define the path together with fields in the payload.
Example
use ;
use ;
;
# async ;
// this will send a POST request to http://example.com/payments/{customer_id}
// with json `{"amount": 100}`
For POST request, the payload will be serialized as json body.
For GET request, the payload will be serialized as query parameters (urlencoded).
For other methods, not supported yet.