Module: tools

tools

Source:

Methods

<static> shortHand(options, method) → {module:request~options}

Creates the shorthand options object for specific HTTP method
Parameters:
Name Type Description
options Object | String Object | String indicating the module:request~options. Passing a String (aka the shorthand options) is handled as `options = {url: options}`.
method String Indicates the HTTP method for the request
Source:
Returns:
An options Object to be used by module:request~Request
Type
module:request~options