HTTP Transport is a flexible, modular REST client built for ease-of-use and resilience. It is designed to be used like so:
const url = "http://example.com/";
const client = require("@bbc/http-transport").createClient();
const res = await client.get(url).asResponse();
if (res.statusCode === 200) {
console.log(res.body);
}
You can find out more by reading the .