大象传媒

HTTP TransportA flexible, modular REST client built for ease-of-use and resilience

License: Apache 2

Project Links:

HTTP Transport is a flexible, modular REST client built for ease-of-use and resilience. It is designed to be used like so:

Code Snippet (javascript)
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 .