resilient-http / resilient.js

Fault tolerant and reactive HTTP client for node.js and browsers
183 stars 13 forks source link

Support cancel request flow from events #111

Closed h2non closed 9 years ago

h2non commented 9 years ago
resilient.on('request:retry', function (options, resilient, stop) {
  if (options.method === 'POST')) {
    stop(new Error('Invalid method'))
  }
})
h2non commented 9 years ago

Done via middleware. Pending documentation!