1.0.1 • Published 3 years ago
@0y0/exec-http v1.0.1
@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
1.0.1
3 years ago
1.0.0
4 years ago
1.0.0-rc.5
4 years ago
1.0.0-rc.4
4 years ago
1.0.0-rc.3
4 years ago
1.0.0-rc.2
4 years ago
1.0.0-rc.1
4 years ago
1.0.0-rc.0
4 years ago