function parseOpts(opts) {
  if (typeof opts === 'string') {
    opts = url.parse(opts)
  } else {
    opts = copy.shallow(opts)
  }

  return opts
}
Parses http opts to an object
If string will call url.parse, otherwise it will
do a shallow copy

@param {string|object} opts a url string or HTTP request options
@returns {object} parsed http opts