0.0.6 • Published 8 years ago

api-request v0.0.6

Weekly downloads
9
License
ISC
Repository
github
Last release
8 years ago

Request API

Module to allow request retries and timeout.

Usage

var apiRequest = require("api-request"); apiRequest(url, options);

Options

var options = {
  onStart: undefined
  // Callback to make prior to fetching request.
  onError: undefined
  // Callback to make if their was an error.
  onSuccess: undefined
  // Callback to make if successful response.
  lastUpdated: undefined
  // The last time request was made
  force: false
  // Ignores any other pre-request checks and forces a retry.
  retryCount: 0
  // How many times to retry on failure
  retryTimeout: 1
  // Initial time to retry after which is multiplied by 2 for next time.
};
0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago