I see there is a Duration property but no examples of how to use it.
https://tauri.app/v1/api/js/http/#duration
If I make an HTTP call like below, I want to be able to cancel the call if takes too long. The browser "fetch" operation has a builtiin for canceling async calls in progress: https://developer.mozilla.org/en-US/docs/Web/API/AbortController/signal
import { getClient } from "@tauri-apps/api/http";
const client = await getClient();
try {
const response = await client.post(url, {
payload: data,
type: "Json",
},{
headers: {
"Content-Type" : "application/json"
}
});
} catch (err) {
}