reywen-http
Why another HTTP lib?
Originally I maintained my own HTTP library within a project for Revolt.chat, but it became too large and is now in it's own repository. That said the library can be easily used by anyone for any API!
Example Using HighPixel API
GET Request
As shown below the library can be used without much prior setup or configuration, and runs asyncronously.
// Imprting needed libraries
use ;
// Generic JSON system
use Value;
async
More complex request
For use in large projects ideally methods are seperated into their own functions (or files) and are connected in a large impl
Here an example for using reywen-http for revolt.chat, for methods that can accept a data body (non GET) the data is represented by an Option as shown below
use ;
use ;
pub async