middleware/cookie_parser/application.js
function getRequestCookies(req) {
  if (req.headers.cookie != null) {
    try {
      return parseCookie(req.headers.cookie);
    } catch (e) {
      this.log(req.urlData.pathname, "Error parsing cookie header: " + e.toString());
      return {};
    }
  } else {
    return {};
  }
}
function getRequestCookies(req) {
  if (req.headers.cookie != null) {
    try {
      return parseCookie(req.headers.cookie);
    } catch (e) {
      this.log(req.urlData.pathname, "Error parsing cookie header: " + e.toString());
      return {};
    }
  } else {
    return {};
  }
}
function getRequestCookies ( req ) { if ( req . headers . cookie != null ) { try { return parseCookie ( req . headers . cookie ) ; } catch ( e ) { this . log ( req . urlData . pathname , "Error parsing cookie header: " + e . toString ( ) ) ; return { } ; } } else { return { } ; } }
Parses the request cookies

@param {object} req
@returns {object}
@private
Parses the request cookies