code: function _getRequestOpts(req, rule) {
    var opts = url.parse(req.url.replace(rule.regexp, rule.replace), true);
    var query = (opts.search != null) ? opts.search : '';
  
    if(query) {
      opts.path = opts.pathname + query;
    }
    opts.method  = req.method;
    opts.headers = req.headers;
    opts.agent = false;
    opts.rejectUnauthorized = false;
    opts.requestCert = false;
    var via = defaultVia;
    if(req.headers.via) {
      via = req.headers.via + ', ' + via;
    }
    opts.headers.via = via;
  
    delete opts.headers['host'];
  
    return opts;
  }
docs: Get request options
  
  @param {HTTPRequest} req
  @param {Object} rule
  @return {Object}
  @api private