2.7.6 • Published 2 years ago

@quenk/jhr v2.7.6

Weekly downloads
10
License
Apache-2.0
Repository
github
Last release
2 years ago

JHR

Introduction

This is library for making XHR/HTTP requests from web applications and Node.js It's APIs are designed around the Quenk Noni library.

Installation

npm install --save @quenk/jhr

Usage

import {doFuture} from '@quenk/noni/lib/control/monad/future';
import {createAgent} from '@quenk/jhr/lib/browser';

let agent = createAgent();

doFuture(function *() {

  let res1 = yield agent.get('/');
  let res2 = yield agent.post('/', {name:'User', token: res1.body.token});

  if(res2.status === 200)
    return pure(undefined);
  else
    return raise(new Error('Request failed!'));

}).fork(console.error, ()=>{});

See the API documentation for more information.

License

This module contains parts licensed under the BSD 3 clause license as well as the Apache-2.0 license. Please see the LICENSE file for more details.

© Quenk Technologies Limited and respective authors.

2.7.4

2 years ago

2.7.6

2 years ago

2.7.5

2 years ago

2.7.3

3 years ago

2.7.2

3 years ago

2.7.1

3 years ago

2.7.0

3 years ago

2.6.26

3 years ago

2.6.25

4 years ago

2.6.24

4 years ago

2.6.23

5 years ago

2.6.22

5 years ago

2.6.21

5 years ago

2.6.20

5 years ago

2.6.19

5 years ago

2.6.18

5 years ago

2.6.17

5 years ago

2.6.16

5 years ago

2.6.15

5 years ago

2.6.14

6 years ago

2.6.13

6 years ago

2.6.12

6 years ago

2.6.11

6 years ago

2.6.10

6 years ago

2.6.9

6 years ago

2.6.8

6 years ago

2.6.7

6 years ago

2.6.6

6 years ago

2.6.5

6 years ago

2.6.4

6 years ago

2.6.3

6 years ago

2.6.2

6 years ago

2.6.1

6 years ago

2.6.0

6 years ago

2.5.2

6 years ago

2.5.1

6 years ago

2.5.0

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.1

6 years ago

2.0.3

7 years ago

2.0.0

7 years ago