sugo-demo-agent
v1.2.2
Published
Demo of sugo agent
Downloads
28
Readme
sugo-demo-agent
Demo of sugo agent
Installation
$ npm install sugo-demo-agent --save
Usage
'use strict'
const sugoDemoAgent = require('sugo-demo-agent')
const co = require('co')
co(function * () {
let agent = sugoDemoAgent('/foo/bar')
// Check if server available
{
let ok = yield agent.knock() // Send HTTP HEAD request.
/* ... */
}
}).catch((err) => console.error(err))
License
This software is released under the Apache-2.0 License.