JSPM

  • Created
  • Published
  • Downloads 1168832
  • Score
    100M100P100Q182618F
  • License ISC

make http requests

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

valuePromise

make an http GET request

Typedefs

RequestOptions : Object

HTTP

Kind: global class

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