Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 715 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 715 Bytes

EasyHTTPLibrary

A JavaScript Library that has functions to directly make HTTP GET, POST, PUT and DELETE Requests.

Versions

1.0.0 : Uses ES5 Prototypes and callback functions

2.0.0 : Uses ES6 Classes, Fetch API and .then() to handle Promises

3.0.0 : Uses ES7 Async and Await

How-to :

  1. Add the easyHttpV2.js (filename indicates the version) to your project to use the library.
  2. Create an object const http = new easyHTTP(); .
  3. Method available are :
  • GET : http.get()
  • POST : http.post()
  • PUT : http.put()
  • DELETE : http.delete()
  1. sampleV2-V3.js is an example of how to use the methods, for your reference.

Copyright

MIT License