function parseHeader (request, indentString) {
  var headerArray = request.toJSON().header,
    headerSnippet = '';
  if (!_.isEmpty(headerArray)) {
    headerArray = _.reject(headerArray, 'disabled');
    headerSnippet += headerArray.reduce(function (accumlator, header) {
      accumlator += indentString + `.header("${sanitize(header.key, true)}", "${sanitize(header.value)}")\n`;
      return accumlator;
    }, '');
  }
  return headerSnippet;
}
/**
 * parses header from request and returns codesnippet in java unirest
 *
 * @param {Object} request - postman request object, more information can be found in postman collection sdk
 * @param {String} indentString - value for indentation
 * @returns {String} - body string parsed from request object
 */
parses header from request and returns codesnippet in java unirest
@param {Object} request - postman request object, more information can be found in postman collection sdk
@param {String} indentString - value for indentation
@returns {String} - body string parsed from request object
parses header from request and returns codesnippet in java unirest @param { Object } request - postman request object more information can be found in postman collection sdk @param { String } indentString - value for indentation @returns { String } - body string parsed from request object
function parseHeader (request, indentString) {
  var headerArray = request.toJSON().header,
    headerSnippet = '';
  if (!_.isEmpty(headerArray)) {
    headerArray = _.reject(headerArray, 'disabled');
    headerSnippet += headerArray.reduce(function (accumlator, header) {
      accumlator += indentString + `.header("${sanitize(header.key, true)}", "${sanitize(header.value)}")\n`;
      return accumlator;
    }, '');
  }
  return headerSnippet;
}
function parseHeader ( request , indentString ) { var headerArray = request . toJSON ( ) . header , headerSnippet = '' ; if ( ! _ . isEmpty ( headerArray ) ) { headerArray = _ . reject ( headerArray , 'disabled' ) ; headerSnippet += headerArray . reduce ( function ( accumlator , header ) { accumlator += indentString + ` ${ sanitize ( header . key , true ) } ${ sanitize ( header . value ) } \n ` ; return accumlator ; } , '' ) ; } return headerSnippet ; }
parses header from request and returns codesnippet in java unirest
 @param {Object} request - postman request object, more information can be found in postman collection sdk
 @param {String} indentString - value for indentation
 @returns {String} - body string parsed from request object
parses header from request and returns codesnippet in java unirest @param { Object } request - postman request object more information can be found in postman collection sdk @param { String } indentString - value for indentation @returns { String } - body string parsed from request object