An asynchronous Client to make Requests with.
Methods
Construct a builder to GET the given url
.
Examples
let client = new;
let response = client.get
.send
.await?;
let response = response.text .await?;
Construct a builder to POST to the given url
.
Examples
let client = new;
let response = client.post
.body_bytes
.send
.await?;
let response = response.json .await?;
Construct a builder to PUT to the given url
.
Examples
let client = new;
let response = client.put
.body_bytes
.send
.await?;
let response = response.json .await?;
Construct a builder to DELETE to the given url
.
Examples
let client = new;
let response = client.delete
.body_bytes
.send
.await?;
let response = response.json .await?;
Construct a builder to HEAD to the given url
.
Examples
let client = new;
let response = client.head
.body_bytes
.send
.await?;
let response = response.json .await?;