lib/utils.js
function requestURL (url) {
  var parsedURL = url.pathname ? url : parseURL(url, true);

  return parsedURL.pathname + (parsedURL.search || '');
}
function requestURL (url) {
  var parsedURL = url.pathname ? url : parseURL(url, true);

  return parsedURL.pathname + (parsedURL.search || '');
}
Turns a url string or a parsed url object (./lib/url#parse)
into a string of the URL with host/port/protocol info stripped

requestURL('http://localhost:9999/search?q=myquery'); // '/search?q=myquery'

@param {String|Object} url
@return {String}