src/http/helpers.js
function _gpfHttpGenSend (methodName) {
    return function (httpObj, data) {
        if (data) {
            httpObj[methodName](data);
        } else {
            httpObj[methodName]();
        }
    };
}
function _gpfHttpGenSend (methodName) {
    return function (httpObj, data) {
        if (data) {
            httpObj[methodName](data);
        } else {
            httpObj[methodName]();
        }
    };
}
function _gpfHttpGenSend ( methodName ) { return function ( httpObj , data ) { if ( data ) { httpObj [ methodName ] ( data ) ; } else { httpObj [ methodName ] ( ) ; } } ; }
Generates a function that implements the http send logic

@param {String} methodName Name of the method to call
@return {Function} Method to trigger the send
@gpf:closure
@since 0.2.1
Generates a function that implements the http send logic