lib/http-api.js
function(conn, options) {
  options = options || {};
  this._conn = conn;
  this.on('resume', function(err) { conn.emit('resume', err); });
  this._responseType = options.responseType;
  this._transport = options.transport || conn._transport;
  this._noContentResponse = options.noContentResponse;
}
function(conn, options) {
  options = options || {};
  this._conn = conn;
  this.on('resume', function(err) { conn.emit('resume', err); });
  this._responseType = options.responseType;
  this._transport = options.transport || conn._transport;
  this._noContentResponse = options.noContentResponse;
}
function ( conn , options ) { options = options || { } ; this . _conn = conn ; this . on ( 'resume' , function ( err ) { conn . emit ( 'resume' , err ) ; } ) ; this . _responseType = options . responseType ; this . _transport = options . transport || conn . _transport ; this . _noContentResponse = options . noContentResponse ; }
HTTP based API class with authorization hook

@constructor
@extends events.EventEmitter
@param {Connection} conn - Connection object
@param {Object} [options] - Http API Options
@param {String} [options.responseType] - Overriding content mime-type in response
@param {Transport} [options.transport] - Transport for http api
@param {Object} [options.noContentResponse] - Alternative response when no content returned in response (= HTTP 204)
HTTP based API class with authorization hook