4.0.2 • Published 4 years ago

apiz-node-client v4.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

apiz-node-client

apiz-node-client implements the APIzClient interface for node, based on got, so you can use options of got.

Usage

import { APIz } from 'apiz-ng';
import apizClient from 'apiz-browser-client';

const apiMeta = {
    getBook: {
        url: 'http://www.a.com'
    }
};

const apis = new APIz(apiMeta, {
    client: apizClient({
        beforeRequest: [async options => console.log(options)],
        afterResponse: [response => console.log(response.statusCode)],
        retry: 3
    })
})

beforeRequest and afterResponse are hooks of got.

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.4

4 years ago

3.0.5

4 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago