@abalmus/request 中文文档教程
Simple HTTP client based on modern Fetch API.
Description
fetch-request - 简单的 HTTP 包装器,可以更舒适地使用 fetch API。
Installation
// NPM
npm install @abalmus/fetch-request
// YARN
yarn add @abalmus/fetch-request
Usage
import { request } from '@abalmus/fetch-request';
request({
url: '/api/v1/getUsers',
method: 'POST'
}).send();
Simple HTTP client based on modern Fetch API.
Description
fetch-request - simple HTTP wrapper for more comfortable fetch API usage.
Installation
// NPM
npm install @abalmus/fetch-request
// YARN
yarn add @abalmus/fetch-request
Usage
import { request } from '@abalmus/fetch-request';
request({
url: '/api/v1/getUsers',
method: 'POST'
}).send();