src/http/helpers.js
function _gpfHttpGenSetHeaders (methodName) {
    return function (httpObj, headers) {
        if (headers) {
            Object.keys(headers).forEach(function (headerName) {
                httpObj[methodName](headerName, headers[headerName]);
            });
        }
    };
}
function _gpfHttpGenSetHeaders (methodName) {
    return function (httpObj, headers) {
        if (headers) {
            Object.keys(headers).forEach(function (headerName) {
                httpObj[methodName](headerName, headers[headerName]);
            });
        }
    };
}
function _gpfHttpGenSetHeaders ( methodName ) { return function ( httpObj , headers ) { if ( headers ) { Object . keys ( headers ) . forEach ( function ( headerName ) { httpObj [ methodName ] ( headerName , headers [ headerName ] ) ; } ) ; } } ; }
Generates a function that transmit headers to the http object

@param {String} methodName Name of the method to call
@return {Function} Method to set the headers
@gpf:closure
@since 0.2.1
Generates a function that transmit headers to the http object