An open API service indexing awesome lists of open source software.

https://github.com/krescruz/http-handler-light

Http request & response handler light with jQuery
https://github.com/krescruz/http-handler-light

ajax http jquery light request response

Last synced: 11 months ago
JSON representation

Http request & response handler light with jQuery

Awesome Lists containing this project

README

          

#### Request HTTP
```javascript
httpRequest.get(url, data);
httpRequest.post(url, data);
```

#### Response HTTP
```javascript
httpResponse.success(...);
httpResponse.fail(...);
```

#### But how do I use it?
```javascript
var url = '../endpoint/';
var data = {'name': 'kres', 'lastname': 'cruz'};

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