code: function(http, options) {
    if (!http || http === 'undefined') {
      http = require('http');
    }
  
    this.url = require('url');
    this.http = http;
    this.options = options;
  }
docs: HttpAdapter
  @param <object>   http      an optional http instance to use
  @param <object>   options   additional options to set on the request