@deot/http-server
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@deot/http-server

Node环境

import { createInstance, Network } from '@deot/http-server';

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实现细节

Readme

Keywords

none

Package Sidebar

Install

npm i @deot/http-server

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

17.2 kB

Total Files

5

Last publish

Collaborators

  • deot