index.js
function parseurl (req) {
  var url = req.url

  if (url === undefined) {
    // URL is undefined
    return undefined
  }

  var parsed = req._parsedUrl

  if (fresh(url, parsed)) {
    // Return cached URL parse
    return parsed
  }

  // Parse the URL
  parsed = fastparse(url)
  parsed._raw = url

  return (req._parsedUrl = parsed)
}
function parseurl (req) {
  var url = req.url

  if (url === undefined) {
    // URL is undefined
    return undefined
  }

  var parsed = req._parsedUrl

  if (fresh(url, parsed)) {
    // Return cached URL parse
    return parsed
  }

  // Parse the URL
  parsed = fastparse(url)
  parsed._raw = url

  return (req._parsedUrl = parsed)
}
function parseurl ( req ) { var url = req . url if ( url === undefined ) { // URL is undefined return undefined } var parsed = req . _parsedUrl if ( fresh ( url , parsed ) ) { // Return cached URL parse return parsed } // Parse the URL parsed = fastparse ( url ) parsed . _raw = url return ( req . _parsedUrl = parsed ) }
Parse the `req` url with memoization.

@param {ServerRequest} req
@return {Object}
@public
Parse the req url with memoization .