Package Exports
- smartrequest
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (smartrequest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
smartrequest
dropin replacement for request
Availabililty
Status for master
Usage
Use TypeScript for best in class instellisense.
import * as smartrequest from 'smartrequest'
// simple post
let options: smartreqest.ISmartRequestOptions = { // typed options
headers: {
"Content-Type": "application/json"
"Authorization": "Bearer token"
},
requestBody: {
key1: 'value1',
key2: 3
}
}
smartrequest.post('https://example.com', options)