msl-server-node/mslMiddleware.js
function isInterceptXHR(req) {
        if (((req.url in interceptXHRMap) && (interceptXHRMap[req.url] !== undefined)) ||
            ((req._parsedUrl.pathname in interceptXHRMap) && (interceptXHRMap[req._parsedUrl.pathname] !== undefined))) {
            return true;
        } else {
            return false;
        }
    }
function isInterceptXHR(req) {
        if (((req.url in interceptXHRMap) && (interceptXHRMap[req.url] !== undefined)) ||
            ((req._parsedUrl.pathname in interceptXHRMap) && (interceptXHRMap[req._parsedUrl.pathname] !== undefined))) {
            return true;
        } else {
            return false;
        }
    }
function isInterceptXHR ( req ) { if ( ( ( req . url in interceptXHRMap ) && ( interceptXHRMap [ req . url ] !== undefined ) ) || ( ( req . _parsedUrl . pathname in interceptXHRMap ) && ( interceptXHRMap [ req . _parsedUrl . pathname ] !== undefined ) ) ) { return true ; } else { return false ; } }
Determines whether the request made by the path requires interception.

@param req => XHR
@return true/false
Determines whether the request made by the path requires interception .