build/authorify.js
function(opts) {
      opts = opts || {};
      var path = opts.path || this.path,
          callback = opts.callback,
          method = opts.method || this.method,
          ws = getWebsocketPlugin(),
          transports = app.config.transports,
          self = this,
          i = 0,
          error,
          response;

      if (ws) {
        if (transports && transports.length > 0) {
          async.whilst(
            function () {
              return (i < transports.length);
            },
            function (done) {
              self.doConnect(transports[i], method, path, function (err, res) {
                error = err;
                response = res;
                if (!err && res) {
                  i = transports.length;
                } else {
                  i++;
                  if (i < transports.length) {
                    delete self.request;
                  }
                }
                done();
              });
            },
            function (err) {
              callback(err || error, response);
            }
          );
        } else {
          error = 'no transport available';
          log.error('%s %s', app.name, error);
          callback(error);
        }
      } else {
        this.doConnect('http', method, path, callback);
      }
      return this;
    }
function(opts) {
      opts = opts || {};
      var path = opts.path || this.path,
          callback = opts.callback,
          method = opts.method || this.method,
          ws = getWebsocketPlugin(),
          transports = app.config.transports,
          self = this,
          i = 0,
          error,
          response;

      if (ws) {
        if (transports && transports.length > 0) {
          async.whilst(
            function () {
              return (i < transports.length);
            },
            function (done) {
              self.doConnect(transports[i], method, path, function (err, res) {
                error = err;
                response = res;
                if (!err && res) {
                  i = transports.length;
                } else {
                  i++;
                  if (i < transports.length) {
                    delete self.request;
                  }
                }
                done();
              });
            },
            function (err) {
              callback(err || error, response);
            }
          );
        } else {
          error = 'no transport available';
          log.error('%s %s', app.name, error);
          callback(error);
        }
      } else {
        this.doConnect('http', method, path, callback);
      }
      return this;
    }
function ( opts ) { opts = opts || { } ; var path = opts . path || this . path , callback = opts . callback , method = opts . method || this . method , ws = getWebsocketPlugin ( ) , transports = app . config . transports , self = this , i = 0 , error , response ; if ( ws ) { if ( transports && transports . length > 0 ) { async . whilst ( function ( ) { return ( i < transports . length ) ; } , function ( done ) { self . doConnect ( transports [ i ] , method , path , function ( err , res ) { error = err ; response = res ; if ( ! err && res ) { i = transports . length ; } else { i ++ ; if ( i < transports . length ) { delete self . request ; } } done ( ) ; } ) ; } , function ( err ) { callback ( err || error , response ) ; } ) ; } else { error = 'no transport available' ; log . error ( '%s %s' , app . name , error ) ; callback ( error ) ; } } else { this . doConnect ( 'http' , method , path , callback ) ; } return this ; }
A request without Authorization header

@inheritdoc #authorize
@private
A request without Authorization header