sugo-demo-agent

1.2.2 • Public • Published

sugo-demo-agent

Build Status npm Version JS Standard

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.

Links

Readme

Keywords

Package Sidebar

Install

npm i sugo-demo-agent

Weekly Downloads

0

Version

1.2.2

License

Apache-2.0

Last publish

Collaborators

  • realglobe