src/http/mock.js
function _gpfHttMockMatchRequest (mockedRequest, request) {
    var url = mockedRequest.url,
        match;
    url.lastIndex = 0;
    match = url.exec(request.url);
    if (match) {
        return mockedRequest.response.apply(mockedRequest, [request].concat(_gpfArrayTail(match)));
    }
}
function _gpfHttMockMatchRequest (mockedRequest, request) {
    var url = mockedRequest.url,
        match;
    url.lastIndex = 0;
    match = url.exec(request.url);
    if (match) {
        return mockedRequest.response.apply(mockedRequest, [request].concat(_gpfArrayTail(match)));
    }
}
function _gpfHttMockMatchRequest ( mockedRequest , request ) { var url = mockedRequest . url , match ; url . lastIndex = 0 ; match = url . exec ( request . url ) ; if ( match ) { return mockedRequest . response . apply ( mockedRequest , [ request ] . concat ( _gpfArrayTail ( match ) ) ) ; } }
Match the provided request with the mocked one

@param {gpf.typedef.mockedRequest} mockedRequest Mocked request to match
@param {gpf.typedef.httpRequestSettings} request Request to match
@return {Promise<gpf.typedef.httpRequestResponse>|undefined} undefined if not matching
@since 0.2.2
Match the provided request with the mocked one