node_modules/rest-facade/src/Client.js
// Run request customizer (from request params)
Run request customizer (from request params)
Run request customizer ( from request params )
function runParamsRequestCustomizer(err) {
      if (err) {
        return reject(err);
      }
      if (isFunction(params._requestCustomizer)) {
        if (params._requestCustomizer.length === 3) { 
          params._requestCustomizer(req, params, sendRequest);
        } else {
          params._requestCustomizer(req, params);
          sendRequest();
        }
      } else {
        sendRequest();
      }
    }
function runParamsRequestCustomizer ( err ) { if ( err ) { return reject ( err ) ; } if ( isFunction ( params . _requestCustomizer ) ) { if ( params . _requestCustomizer . length === 3 ) { params . _requestCustomizer ( req , params , sendRequest ) ; } else { params . _requestCustomizer ( req , params ) ; sendRequest ( ) ; } } else { sendRequest ( ) ; } }
Run request customizer (from request params)
Run request customizer ( from request params )
// check if callback has been defined // if no callback (run synchronously)