@deot/http-client
v1.1.10
Published
`Browser`环境
Downloads
28
Readme
@deot/http-client
Browser环境
import { createInstance, Network } from '@deot/http-client';
await Network.http(`https://xxx.com/api.json`);
await Network.http({
url: `https://xxx.com/api.json`
});
// cancel 1
const leaf = Network.http(`https://xxx.com/api.json`);
await leaf.cancel();
// cancel 2
const shell = Network.custom(`https://xxx.com/api.json`);
shell.send();
await shell.cancel();所有api与@deot/http-core一致,可忽略provider实现细节
