0.1.31 • Published 7 years ago
http-browser v0.1.31
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.31
7 years ago
0.1.30
8 years ago
0.1.29
8 years ago
0.1.28
8 years ago
0.1.27
8 years ago
0.1.26
8 years ago
0.1.25
8 years ago
0.1.24
8 years ago
0.1.23
8 years ago
0.1.21
8 years ago
0.1.20
8 years ago
0.1.19
8 years ago
0.1.15
8 years ago
0.1.14
8 years ago
0.1.13
8 years ago
0.1.12
8 years ago
0.1.11
8 years ago
0.1.10
8 years ago
0.1.9
8 years ago
0.1.8
8 years ago
0.1.7
8 years ago
0.1.6
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago