lib/helpers/helpers.js
function cookieToHeader(cookies) {
    const SEPARATOR = '; ';
    return cookies.reduce(function (previous, current) {
        return previous + current.name + '=' + current.value + SEPARATOR;
    }, '');
}
function cookieToHeader(cookies) {
    const SEPARATOR = '; ';
    return cookies.reduce(function (previous, current) {
        return previous + current.name + '=' + current.value + SEPARATOR;
    }, '');
}
function cookieToHeader ( cookies ) { const SEPARATOR = '; ' ; return cookies . reduce ( function ( previous , current ) { return previous + current . name + '=' + current . value + SEPARATOR ; } , '' ) ; }
Transforms an array of cookies objects into a request header
@param cookies {array}
@returns {string}
Transforms an array of cookies objects into a request header