@0y0/exec-http 中文文档教程
@0y0/exec-http ·
exec-http
运行 http 请求并聚合结果。
Installation
npm install --save @0y0/exec-http
Usage
const execHttp = require('@0y0/exec-http')
await execHttp(
// (object) Http execution options
{
// (object) Request options
request: {
// (string) Request URL
url,
// (string?) Request method
// (Default: GET)
method,
// (object?) Request headers
headers,
// (string?) Request body type
// (Available: form, form-urlencoded, json)
type,
// (object?) Request body
body
},
// (object?) Response options
response: {
// (string?) Response body type
// (Available: json, text)
type,
// (object?) Response body model transformer
model
}
},
// (object?) Global definitions
variables
)
License
@0y0/exec-http ·
exec-http
runs the http request and aggregates the results.
Installation
npm install --save @0y0/exec-http
Usage
const execHttp = require('@0y0/exec-http')
await execHttp(
// (object) Http execution options
{
// (object) Request options
request: {
// (string) Request URL
url,
// (string?) Request method
// (Default: GET)
method,
// (object?) Request headers
headers,
// (string?) Request body type
// (Available: form, form-urlencoded, json)
type,
// (object?) Request body
body
},
// (object?) Response options
response: {
// (string?) Response body type
// (Available: json, text)
type,
// (object?) Response body model transformer
model
}
},
// (object?) Global definitions
variables
)
License
更多
你可能也喜欢
- 20-npm-rchaud03 中文文档教程
- @10up/stylelint-config 中文文档教程
- @21gram-consulting/storage-api 中文文档教程
- @4geit/swg-notification-model 中文文档教程
- @4keys/escpos 中文文档教程
- @4tw/cypress-drag-drop 中文文档教程
- @abi-software/mapcore-augmented-results 中文文档教程
- @ablegroup/propertymapping 中文文档教程
- @abridged/web-wallet-frame-sdk 中文文档教程
- @abstractfruitfactory/radix-js 中文文档教程