2.7.6 • Published 1 year ago

@quenk/jhr v2.7.6

Weekly downloads
10
License
Apache-2.0
Repository
github
Last release
1 year 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

1 year ago

2.7.6

1 year ago

2.7.5

1 year ago

2.7.3

1 year ago

2.7.2

2 years ago

2.7.1

2 years ago

2.7.0

2 years ago

2.6.26

2 years ago

2.6.25

3 years ago

2.6.24

3 years ago

2.6.23

4 years ago

2.6.22

4 years ago

2.6.21

4 years ago

2.6.20

4 years ago

2.6.19

4 years ago

2.6.18

4 years ago

2.6.17

4 years ago

2.6.16

4 years ago

2.6.15

4 years ago

2.6.14

4 years ago

2.6.13

5 years ago

2.6.12

5 years ago

2.6.11

5 years ago

2.6.10

5 years ago

2.6.9

5 years ago

2.6.8

5 years ago

2.6.7

5 years ago

2.6.6

5 years ago

2.6.5

5 years ago

2.6.4

5 years ago

2.6.3

5 years ago

2.6.2

5 years ago

2.6.1

5 years ago

2.6.0

5 years ago

2.5.2

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.0.3

6 years ago

2.0.0

6 years ago