0.9.0 • Published 5 months ago

immutable-http-client v0.9.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 months ago

immutable-http-client

HTTP client for immutable-core based on node-fetch.

v0.8.0

Switch to using node-fetch instead of request-promise which is now deprecated. It is better to use a single API on front and back end so switching to fetch was desirable for that reason in any case.

Removed automock functionality which was experimental and will likely be replaced with superior functionality instead of being continued.

Remove the custom response handling logic. This makes the client slightly less convenient but now that it is targeting the fetch standard it is better to provide the raw fetch response for maximum compatibility will calling code.

Getting HTTP Client instance

const http = require('immutable-http-client')

Immutable HTTP Client provides a singleton global client instance that will be returned whenever it is required.

Methods

fetch (url, options, session)

Make a request using node-fetch.

Setting a log client

const http = require('immutable-http-client')

http.logClient(logClient)

The logClient sets the logging client which will be used to log all http requests and responses.

0.9.0

5 months ago

0.8.0

3 years ago

0.7.4

5 years ago

0.7.3

5 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.33

6 years ago

0.6.32

6 years ago

0.6.31

6 years ago

0.6.30

6 years ago

0.6.29

6 years ago

0.6.28

7 years ago

0.6.27

7 years ago

0.6.26

7 years ago

0.6.25

7 years ago

0.6.24

7 years ago

0.6.23

7 years ago

0.6.22

7 years ago

0.6.21

7 years ago

0.6.20

7 years ago

0.6.19

7 years ago

0.6.18

7 years ago

0.6.17

7 years ago

0.6.16

7 years ago

0.6.15

7 years ago

0.6.14

7 years ago

0.6.13

7 years ago

0.6.12

7 years ago

0.6.11

7 years ago

0.6.10

7 years ago

0.6.9

7 years ago

0.6.8

7 years ago

0.6.7

7 years ago

0.6.6

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.10

7 years ago

0.5.9

7 years ago

0.5.8

7 years ago

0.5.7

7 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.21

7 years ago

0.4.20

7 years ago

0.4.19

7 years ago

0.4.18

7 years ago

0.4.17

7 years ago

0.4.16

7 years ago

0.4.15

7 years ago

0.4.14

7 years ago

0.4.13

7 years ago

0.4.12

7 years ago

0.4.11

7 years ago

0.4.10

7 years ago

0.4.9

7 years ago

0.4.8

7 years ago

0.4.7

7 years ago

0.4.6

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago