【文件属性】:
文件名称:make-fetch:使用异步迭代器实现自己的`fetch()`
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-08 16:13:10
fetch async-iterator JavaScript
取得
使用node.js流实现自己的fetch()
用法
npm i --save make-fetch
const makeFetch = require ( 'make-fetch' )
const fetch = makeFetch ( async ( request ) => {
const {
url , // String representing request URL
headers , // An object mapping header titles to values
referrer , // An optional string specify the referrer
method , // The HTTP method, will always be uppercase, default is `GET`
bo
【文件预览】:
make-fetch-master
----test.js(763B)
----tsconfig.json(166B)
----LICENSE(1KB)
----README.md(1KB)
----index.d.ts(2KB)
----.gitignore(2KB)
----index.js(3KB)
----package.json(849B)