obten
A fetch based minimal HTTP client for JavaScript Applications running in the web browser.
Usage
Install obten in your node application
npm install --save obten
import obten
;
obten uses a configuration object for any of it's methods. See below how to use it in your applications.
- Making a
GET
request:
obten ;
note: url
is a required parameter.
- Making a
POST
request
obten ;
note: url
and body
are the required parameters.
- Making a
PUT
request:
obten ;
note: url
and body
are the required parameters.
- Making a
DELETE
request
obten ;
note: url
is a required parameter.
headers
object with your headers in the standard format
You can optionally pass a obtenmethod headers: 'header-name': 'value' ;
note: method can be any of the one mentioned above.