grunt-http-poll

0.1.0 • Public • Published

grunt-http-poll

Build Status NPM version Dependencies

Poll a http endpoint until you see the desired statuscode.

In our case we use it after issuing the stop command to keep polling until we see the server has stopped.

installation:

npm install --save grunt-http-poll

usage:

grunt.initConfig({
  'http-poll':{
    options: {
      endpoint: 'http://myserver.com/someendpoint',
      statuscode: 502, // desired status code
      pollinterval: 1000, // time between requests
      timeout: 60000 // if no change seen by the timeout then throw an exception
      timeoutIsError: false // treat the timeout elapse as an error (fail) or not (continue), default: true
    }
  }
});

Readme

Keywords

Package Sidebar

Install

npm i grunt-http-poll

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • acolchado
  • arnoldzokas
  • matteofigus
  • ryantomlinson
  • andyroyle