src/http/mock.js
function _gpfHttpMockAdd (definition) {
    var method = definition.method.toUpperCase(),
        id = method + "." + _gpfHttpMockLastId++;
    _gpfHttpMockGetMockedRequests(method).unshift(Object.assign({
        id: id
    }, definition));
    return id;
}
function _gpfHttpMockAdd (definition) {
    var method = definition.method.toUpperCase(),
        id = method + "." + _gpfHttpMockLastId++;
    _gpfHttpMockGetMockedRequests(method).unshift(Object.assign({
        id: id
    }, definition));
    return id;
}
function _gpfHttpMockAdd ( definition ) { var method = definition . method . toUpperCase ( ) , id = method + "." + _gpfHttpMockLastId ++ ; _gpfHttpMockGetMockedRequests ( method ) . unshift ( Object . assign ( { id : id } , definition ) ) ; return id ; }
Add a mocked request

@param {gpf.typedef.mockedRequest} definition Mocked request definition
@return {gpf.typedef.mockedRequestID} Mocked request identifier, to be used with {@link gpf.http.mock.remove}
@see gpf.http
@since 0.2.2
Add a mocked request