Skip to content

krescruz/http-handler-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Request HTTP

httpRequest.get(url, data);
httpRequest.post(url, data);

Response HTTP

httpResponse.success(...);
httpResponse.fail(...);

But how do I use it?

var url = '../endpoint/';
var data = {'name': 'kres', 'lastname': 'cruz'};

//Answer a promise
httpRequest.post(url, data)
  .then(httpResponse.success, httpResponse.fail);

About

Http request & response handler light with jQuery

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published