pvserverhelper
Version:
This is an npm module design to perform common uses with pVelocity's pvserver
18 lines (17 loc) • 422 B
Markdown
### ``httpMethod(options)``
Sends a http ``request`` with the ``options``.
- `options` `<Object>`
```js
pvh.httpMethod({
headers: {
'user-agent': 'pvserverhelper',
'content-type': 'application/x-www-form-urlencoded',
'cache-control': 'no-cache',
'pragma': 'no-cache',
},
method: 'POST',
url: 'http://localhost:80'
}).then(function(result) {
console.log(result);
});
```