1.1.0 • Published 5 months ago

bm-minimal-fetch v1.1.0

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

http-minimal-fetch

An http fetcher with basic options to make it simpler

Usage

This package is instanced using a singleton pattern, so you only need to import it like this way:

import HttpRequest from 'bm-minimal-fetch';
const http = HttpRequest.getInstance('http://your-desired-url-to-fetch');

Now if you need to do an HTTP GET request, just type:

http.get('/your-endpoint');

Also, we would be able to send an HTTP POST request, just typing:

http.post('/your-endpoint', {
  user: 'foo',
  lastname: 'bar'
})
1.1.0

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago