clientside-request

1.4.4 • Public • Published

clientside-request

npm npm

This is a npm nodule for the front end (a cmm module) built to bring the simplicity of request-promise package to the browser.

Installation

npm install clientside-request --save

Example Usage

require("clientside-request")
    .then((request)=>{
        return request("http://same_origin/route") // note, request must be same origin as browsers block cross origin requests.
    })
    .then((response)=>{
        /* */
    })

comments

To preserve sessions and handle cookies from server and to server - set {cookies : true}

Readme

Keywords

none

Package Sidebar

Install

npm i clientside-request

Weekly Downloads

0

Version

1.4.4

License

ISC

Unpacked Size

16.3 kB

Total Files

10

Last publish

Collaborators

  • uladkasach