code: function sendRequest()
    {
      // if this is a retry and a query parameter should be appended to the url on
      // retry, update the url
      if ((numRetries > 0) && appendQueryParamOnRetry)
      {
        options.url = Util.url.appendParam(urlOrig, 'retry', true);
      }
  
      sf.request(options);
    }
docs: create a function to send the request