0.1.54 • Published 7 years ago
spears v0.1.54
http-browser
Installation
npm install http-browser --save
or
bower install http-browser --save
Usage
$http.get('/items.json', { prop1: 'value1' });
// GET .../items.json?prop1=value1
$http.post('/items.json', {
prop1: 'value1'
});
$http.put('/items.json', {
prop1: 'another value'
});
$http.delete('/items.json');
$http.patch('/items.json', {
op: 'add', path: '/prop1', value: 'one more value'
});
$http.patch('/items.json')
.remove('/prop1')
.add('/list/-', { subprop: 'sample value' })
.submit();
Cached URL
var httpItems = $http('items.json');
httpItems.get({ prop1: 'value1' });
httpItems.post({ prop1: 'value1' });
httpItems.put({ prop1: 'another value' });
httpItems.delete();
httpItems.patch({
op: 'add', path: '/prop1', value: 'one more value'
});
httpItems.patch()
.remove('/prop1')
.add('/list/-', { subprop: 'sample value' })
.submit();
0.1.54
7 years ago
0.1.53
7 years ago
0.1.52
7 years ago
0.1.51
7 years ago
0.1.50
7 years ago
0.1.49
7 years ago
0.1.48
7 years ago
0.1.47
7 years ago
0.1.46
7 years ago
0.1.45
7 years ago
0.1.44
7 years ago
0.1.43
7 years ago
0.1.42
7 years ago
0.1.41
7 years ago
0.1.40
7 years ago
0.1.39
7 years ago
0.1.38
7 years ago
0.1.37
7 years ago
0.1.36
7 years ago
0.1.35
7 years ago
0.1.32
7 years ago