Package Exports
- http-call
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 (http-call) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Classes
- HTTP
Members
- value ⇒
Promise make an http GET request
Typedefs
- RequestOptions :
Object
HTTP
new HTTP()
Utility for simple HTTP calls
value ⇒ Promise
make an http GET request
Kind: global variable
| Param | Type | Description |
|---|---|---|
| url | string |
url or path to call |
| options | RequestOptions |
Example
const http = require('http-call')
await http.get('https://google.com')RequestOptions : Object
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| headers | Object.<string, string> |
request headers |
| method | string |
request method (GET/POST/etc) |
| body | string |
request body. Sets content-type to application/json and stringifies when object |